Natsuyuki Rendezvous, Golden Time Recommendations
These animes are similar because they both have a ghost who tries to interfere with the male protagonist relationship and cause them unhappiness.
Both are romantic comedies and have vibrant colors. Both have conflict with someone of the past. Conflict between ghost and main character.