Browse the chart or check contrast
Switch between the classic 24-patch reference chart and the WCAG contrast checker.
Browse the classic 24-patch color checker chart with HEX and RGB, plus a WCAG contrast checker for text and background pairs. Runs locally in your browser.
Loading tool…
Follow these steps for a clear answer.
Switch between the classic 24-patch reference chart and the WCAG contrast checker.
Click a patch for HEX/RGB, or enter foreground and background colors for a contrast ratio.
Copy codes into CSS, and use AA/AAA results to verify readable text contrast.
Core relationships used by this color tool.
Common picks with formula and result.
Primary red
Neutral ramp
Navy on light blue
Light gray on white
Version 1.0.0
L from sRGB; contrast = (Lmax + 0.05)/(Lmin + 0.05); AA/AAA thresholds as WCAG 2.xThe classic chart is a 4×6 grid: natural colors, miscellaneous accents, photographic primaries/secondaries, then a six-step gray scale. Use it as a shared visual reference when comparing cameras, scanners, or display pipelines—not as a replacement for hardware calibration under controlled light.
The Contrast tab follows WCAG luminance math so you can validate text/background pairs before shipping UI. For picking arbitrary hues, use the HTML color picker; for full palettes, try the color scheme generator.
/* Example: accessible navy on soft blue */
.banner {
background-color: #acc8e5;
color: #112a46; /* check contrast before shipping */
}
| Row | Patches | Purpose |
|---|---|---|
| Natural | 1–6 | Skin, sky, foliage, flower, bluish green |
| Miscellaneous | 7–12 | Orange, blues, reds, greens, yellows |
| Primaries | 13–18 | Blue, green, red, yellow, magenta, cyan |
| Grayscale | 19–24 | White through black neutrals |
Key distinctions behind the tool.
A standardized 24-color target introduced for photographic color rendition testing. Patches approximate skin, sky, foliage, and other everyday colors plus primaries and a gray ramp, so cameras and workflows can be compared against known references.
No. Values here are nominal manufacturer sRGB for screen reference. Real charts differ slightly by production batch, age, and viewing illuminant. Use a spectrophotometer for critical calibration.
WCAG AA needs at least 4.5:1 for normal text and 3:1 for large text. AAA needs 7:1 for normal text and 4.5:1 for large text.
Convert each color to relative luminance (from linearized sRGB), then compute (lighter + 0.05) / (darker + 0.05). Higher ratios mean easier reading.
No. Chart lookup and contrast math run locally in your browser.