Menu

Guess the HEX Code

See a color swatch — pick the correct HEX code from 4 options. Test your color memory across 4 difficulty levels.

Choose Your Difficulty

Test your color perception across 10 rounds

🏆 Personal best: 0 points
?
🎉

Game Complete!

Great job testing your color memory

Final Score
0
Correct
0/10
Best Streak
0
01
THE GAME

What Is "Guess the HEX Code"?

Guess the HEX Code is a fast-paced color guessing game that tests your ability to identify colors by their hexadecimal code. Each round shows a color swatch — and four candidate HEX codes. Only one is the exact match. Pick the right one to score points, build streaks, and climb your personal best.

It's the perfect warm-up for designers, frontend developers, and anyone who works with digital color. It's also a genuinely fun way to build intuition for how HEX codes map to actual colors — a skill that pays off every time you're debugging a UI or matching a brand palette.

Simple rule: See color → guess HEX → score points. Correct answer = more points, faster answer = even more. Miss = lose the streak, but keep playing.
02
HOW TO PLAY

Game Rules & Mechanics

  • Pick a difficulty. Easy (obvious differences), Medium, Hard (similar shades), or Expert (nearly identical).
  • See a color swatch. A random color appears on screen.
  • Choose the correct HEX. Four options are shown — pick the one that matches the swatch exactly.
  • Beat the timer. Each round has a countdown. Answer before it hits zero to score.
  • Build streaks. Every consecutive correct answer multiplies your score bonus.
  • Complete 10 rounds. Your final score is compared against your personal best.

Scoring Breakdown

  • Base points: 10 (easy), 20 (medium), 30 (hard), 50 (expert)
  • Speed bonus: +50% if answered in under half the time limit
  • Streak bonus: +10 × current streak (multiplied by difficulty)
  • Wrong answer: 0 points, streak resets to zero
Pro tip: The first two characters of a HEX code are red, the next two are green, and the last two are blue. So #FF0000 is pure red, #00FF00 is pure green, and #0000FF is pure blue. Use this to narrow down options fast.
03
DIFFICULTY LEVELS

What Each Level Challenges

🌱 Easy

Decoy colors are visibly different from the target (hue shifted 30–60°). Best for learning the HEX system and warming up. 15 seconds per round.

⚡ Medium

Decoys are close but distinguishable (hue shifted 15–30°). Tests your real color acuity. 12 seconds per round.

🔥 Hard

Decoys are very similar shades (hue shifted 5–15°). Requires careful comparison. 10 seconds per round.

💎 Expert

Decoys are nearly identical (hue shifted 2–5°). Only color experts with well-trained eyes can score high. 8 seconds per round.

04
HEX COLOR BASICS

Why HEX Codes Matter (and How to Read Them)

HEX is the universal color notation for the web. Every CSS color, every design token, every brand guideline uses it. Learning to read HEX fluently is a superpower — you can instantly spot a color's red/green/blue balance, tell cool from warm, and predict how a color will shift when adjusted.

A HEX code has 6 characters after the # symbol, organized as three pairs: #RRGGBB.

  • First pair (RR) — Red channel, 00 to FF (0–255)
  • Second pair (GG) — Green channel, 00 to FF (0–255)
  • Third pair (BB) — Blue channel, 00 to FF (0–255)

Each pair goes from 00 (off) to FF (maximum). So:

  • #FF0000 = pure red (max red, no green, no blue)
  • #00FF00 = pure green (no red, max green, no blue)
  • #0000FF = pure blue (no red, no green, max blue)
  • #FFFFFF = white (all channels max)
  • #000000 = black (all channels off)
  • #808080 = grey (all channels equal)

Once you can mentally parse RRGGBB, colors stop looking like random strings and start looking like formulas. #FF6600 is "lots of red, medium green, no blue" — an orange. #0044AA is "no red, some green, lots of blue" — a deep blue. This game trains that exact skill.

05
WHY IT HELPS

What You Actually Learn by Playing

🎨 Color Intuition

You'll start seeing HEX codes as colors, not strings. After a few games, you'll be able to guess a HEX within ±30 of the target.

🔍 Hue Discrimination

Hard and Expert modes train you to spot tiny hue differences — a skill that pays off when matching colors across screens or brands.

⚡ Faster Debugging

When a designer says "make it #3B82F6 not #2563EB," you'll instantly see the difference instead of opening a picker.

🎯 Brand Accuracy

Spot when a "brand blue" is off by 5% red channel — the difference between a polished and a broken-looking page.

🧠 Memory Training

The game is a memory workout for the visual cortex. Repeated play improves both speed and accuracy at recognizing color.

🏆 Fun & Competitive

Beat your personal best, build a streak, chase expert mode. Turns a learning exercise into a game you actually want to play.

06
TIPS & STRATEGY

How to Score Higher

  • Read the first pair first. How red is the swatch? FF = bright, 40 = dark red, 00 = no red at all.
  • Eliminate by hue family. If the swatch is clearly blue, options with high red are instant eliminations.
  • Check the brightness. Higher total value = brighter. #FFFFFF is white, #000000 is black.
  • Compare the third pair. Blue often distinguishes similar reds and greens — a "blue-red" versus an "orange-red."
  • Don't overthink. Your first instinct is usually right. Second-guessing on Hard/Expert is where most points are lost.
  • Use the timer wisely. If you're not sure, eliminate obviously wrong options — 2 choices beat 4.
  • Practice makes perfect. After 5 games, you'll notice your scores jump from ~50 to ~150+.
08
FREQUENTLY ASKED QUESTIONS

Guess the HEX Code FAQ

What is "Guess the HEX Code"?

It's a color guessing game. Each round shows a color swatch and four candidate HEX codes. You pick the one that matches the swatch. Correct answer = points. Wrong answer = streak resets.

How many rounds are in a game?

Each game is 10 rounds. Your final score is compared against your personal best (saved in your browser).

What's the difference between the difficulty levels?

Easy has visibly different decoy colors (hue shifted 30–60°). Medium has moderate differences (15–30°). Hard has similar shades (5–15°). Expert has nearly identical colors (2–5°) — only color experts score high here.

How does scoring work?

Base points per round depend on difficulty (10/20/30/50). Speed bonus adds 50% if you answer in under half the time. Streak bonus adds 10× current streak. Wrong answers give 0 points and reset the streak.

Is the timer per round or per game?

The timer is per round. Each difficulty has a different time limit (15s easy, 12s medium, 10s hard, 8s expert). If the timer runs out, that round counts as a miss.

Is my best score saved?

Yes. Your personal best score is stored in your browser's localStorage. It persists across sessions and shows on the start screen.

Can I play on mobile?

Yes. The game is fully responsive and works on phones and tablets. All buttons are thumb-friendly and the swatch scales down on small screens.

What is a HEX code?

A HEX code is a 6-digit hexadecimal color notation used on the web. It's written as #RRGGBB, where RR is red (00-FF), GG is green (00-FF), and BB is blue (00-FF). For example, #FF0000 is pure red.

Why do HEX codes use letters?

Because HEX is base-16, which uses 0–9 and A–F as digits. Each pair (00 to FF) represents 0–255 in decimal — the range for RGB channels.

How can I get better at this game?

Practice is the main way. After a few games, you'll naturally develop intuition for reading HEX codes. Focus on the first pair (red channel) first — it's usually the biggest discriminator. Then check blue as a tiebreaker.

Can I see the correct answer if I get it wrong?

Yes. After you answer (correct or wrong), the correct HEX is highlighted in green and your wrong choice is highlighted in red. The swatch also shows the correct HEX at the bottom.

What happens if the timer runs out?

If you don't answer before the timer hits zero, that round counts as incorrect — no points, streak resets. The correct answer is revealed so you can learn from it.

Is this game free?

Yes. Completely free, no signup, no email, no data collection. Everything runs in your browser.

Can I play multiple games in a row?

Yes. After a game ends, click "Play Again" to start a new game with the same difficulty. Or return to the start screen to pick a different difficulty.