Color contrast lab
Measure text contrast, explore a palette, and export reusable color tokens. All processing stays here.
Foreground & background
Do not paste passwords, one-time codes, card or bank numbers, or ID numbers. Examples on this page are made up.
Opaque sRGB only: #RGB, #RRGGBB, rgb(0 128 255), rgb(0%, 50%, 100%), hsl(210 100% 50%). Alpha, named colors and out-of-range components are rejected.
Contrast results
AA normal ≥ 4.5, AAA normal ≥ 7; AA large ≥ 3, AAA large ≥ 4.5. Large means ≥ 18 pt or ≥ 14 pt bold. Non-text ≥ 3 applies to required boundaries and graphical objects, with WCAG exceptions. Decisions use full precision, never the rounded display.
APCA candidate 0.0.98G is experimental and separate from WCAG 2.2 AA/AAA. Positive Lc: dark text on light; negative: light text on dark. Typography affects APCA suitability; no APCA compliance verdict is inferred.
Vision previews use approximate linear RGB/LMS projections with gamut clipping. They are illustrative, not clinical predictions. Contrast results always use the original colors.
Palette contrast matrix
Rows = text, columns = background. Each cell shows WCAG ratio, normal-text AA result, and signed APCA Lc. Swatches follow the selected simulation; matrix numbers use original colors.