Hex color cheat sheet
Tap any swatch or code to copy it. Then use the converter and the contrast checker to adjust colors and make sure text stays readable.
Build a palette around one color
Start with a color you love, like a fabric, a paint chip, or your brand color. Choose how the other colors relate to it, then tune how vivid and how contrasting the set should be.
Tap a color to copy it. Use the lock to keep a color while you shuffle the rest. Aa shows whether dark or white text is easier to read on that color.
Pull colors from a picture
Upload a photo of fabric, a garden, a room you love, or anything else. The main colors appear below, ready to copy. Your photo stays on your device.
Your palette will appear here.
HEX · RGB · HSL
Contrast checker
Body text looks like this at regular size. Readability matters most here.
WCAG AA asks for 4.5:1 for body text and 3:1 for large text. AAA asks for 7:1 and 4.5:1.
How to read a hex code
A hex code like #1F7F7C is a recipe for mixing light. Once you know the pattern, you can glance at a code and roughly picture the color.
The three steps
- Split it into pairs. After the #, the six characters are three pairs: red, green, blue, always in that order.
- Each pair is a number from 00 to FF. 00 means none of that light. FF means all of it.
- The biggest pair wins. Whichever pair is highest is the color it leans toward. In #1F7F7C, green and blue are high and red is low, so it's teal.
Why letters?
"Hex" is short for hexadecimal, a way of counting in sixteens instead of tens. After 0–9 come six letters: A=10, B=11, C=12, D=13, E=14, F=15. So each pair can hold 16 × 16 = 256 values, from 0 to 255.
Example: 7F = 7 × 16 + 15 = 127, right in the middle.
Mix your own
Move the sliders and watch the code build itself.
Fun facts
Guess the color
Read the code, then tap the swatch you think it makes.
#