HEX, RGB, HSL, OKLCH and Contrast
Convert opaque HEX, RGB, HSL, OKLCH and named colors, then check WCAG contrast between a foreground/background pair.
Enabling local controls…
If clipboard access is denied, select the read-only output manually.
WCAG 2.1 contrast
Accepts opaque HEX, RGB, HSL, OKLCH and named colors. Decisions use the unrounded ratio of converted8-bit sRGB colors; out-of-gamut colors use the converter's channel clipping. Does not assess gradients, transparency, images or a live page.
Normal text at16px.
Large bold text21.000:1
- AA normal ≥4.5: Pass
- AA large ≥3: Pass
- AAA normal ≥7: Pass
- AAA large ≥4.5: Pass
How to use this tool
Enter a supported color or use the picker, convert and inspect the local swatch before copying HEX, RGB, HSL or OKLCH.
When not to use it
Alpha must be fully opaque. System/inherited colors and arbitrary CSS expressions are unsupported. Out-of-sRGB OKLCH retains its source notation; the preview and contrast use explicitly flagged8-bit sRGB channel clipping.