Color Picker
Pick a color, get every format, and see how it performs against WCAG contrast thresholds.
Features
- HEX, RGB, HSL and HSV output for every color
- Eleven-step tint and shade ramp
- WCAG AA and AAA contrast ratios against black and white
- Click any swatch to copy its hex value
- Paste a hex value to jump straight to it
How to use it
- Click the color field, or paste a hex value.
- Read off whichever format you need.
- Use the ramp for hover and active states.
- Check the contrast panel before shipping text on this color.
Reading the contrast numbers
WCAG expresses contrast as a ratio between two relative luminance values, running from 1:1 (identical) to 21:1 (black on white). Body text needs at least 4.5:1 to meet AA, and 7:1 to meet AAA. Large text, 18pt regular or 14pt bold and above, gets a lower bar of 3:1 for AA.
The panel above tells you which of black or white text passes on your chosen color. If neither reaches 4.5:1, the color is too mid-tone to carry text at all; darken or lighten it before using it as a background. Note that contrast ratio is a proxy for legibility, not a guarantee of it, it says nothing about font weight, size or the surrounding layout.
Frequently asked questions
Related tools
Further reading
Read the full guide on the 123MiniApps blog.