Color Converter
Convert colours between HEX, RGB, HSL, HWB, OKLCH and CMYK, plus code-ready formats.
Open toolCheck text and background colours against WCAG 2.2 AA and AAA, and get the nearest passing colour.
Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.
Passing a contrast ratio is one part of accessibility. It doesn't prove a page conforms to WCAG; test with real users and assistive technology for a full assessment.
Calculates the WCAG contrast ratio between a text colour and a background and shows, at a glance, whether it passes for normal text, large text and user-interface components at levels AA and AAA. Ratios are never rounded up, so a 4.48:1 result correctly fails the 4.5:1 requirement.
When a pair fails, the checker suggests the closest colours that pass by adjusting only lightness in the OKLCH colour space, so your brand hue stays intact. Translucent colours are blended before measuring.
Your details
HEX, RGB, HSL, HWB, OKLCH
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Shown instantly, ready to copy or export
Enter a text colour and a background colour in any format, or use the pickers.
Read the ratio and the pass/fail results for each WCAG level.
If it fails, click a suggested colour to apply it.
Zero-upload architecture
Free, with no sign-up or watermark · Your details stay on your device
Launch the app. There is nothing to install and no account to create.
Read the ratio and the pass/fail results for each WCAG level.
If it fails, click a suggested colour to apply it.
Convert colours between HEX, RGB, HSL, HWB, OKLCH and CMYK, plus code-ready formats.
Open toolBuild harmonious palettes and 50–950 tonal scales from one colour, or extract a palette from any image.
Open toolDesign linear, radial and conic CSS gradients with draggable colour stops and copy the code.
Open toolPaste HTML or Markdown to see the heading outline and find skipped levels, missing or multiple h1s and empty headings.
Open tool