Colour converter and contrast checker
Type or pick a colour to get all five formats, then check any text and background pair against the WCAG 2.1 rules before you ship it.
- Five colour formats
- WCAG AA and AAA verdicts
- Suggested text colours
- Nothing is uploaded
Five formats and the WCAG verdict
Conversion uses the standard sRGB formulas and OKLab for OKLCH, and contrast comes from the WCAG relative-luminance ratio.
Every format at once
- HEX
#7c3aedCSS hex, 8-bit per channel - RGB
rgb(124, 58, 237)Red, green, blue 0–255 - HSL
hsl(262.1, 83.3%, 57.8%)Hue 0–360, saturation and lightness - HSV
hsv(262.1, 75.5%, 92.9%)Hue, saturation, value (colour pickers) - OKLCH
oklch(54.1% 0.247 293)Perceptually uniform; Tailwind v4 palette space
WCAG 2.1 contrast
17.85:1- AA — large text (18.66px bold or 24px)needs 3:1
- AA — normal textneeds 4.5:1
- AAA — large textneeds 4.5:1
- AAA — normal textneeds 7:1
Ratios come from the WCAG 2.1 relative-luminance formula — (L1 + 0.05) ÷ (L2 + 0.05) — so 21:1 is black on white and 1:1 is a colour against itself.
How it works
CSS tools that run in your tab
No uploads, no sign-ups and nothing to wait for: the the CSS maths runs inside the page itself, so the numbers appear as you type.
1. Pick a starting point
A shadow preset, a gradient or a hex value you already use. All of it lives in page state, so nothing is sent anywhere.
2. Shape it the way you want
Drag the sliders, move a stop or type a colour, and every output updates as you type.
3. Get the output instantly
The preview, the CSS declaration and the Tailwind class update on every keystroke: no submit button, no waiting screen.
4. Check before you ship
Contrast ratios come from the WCAG formula, and the tool says so plainly when a colour cannot be parsed.
Privacy by architecture
Nothing is uploaded — and you can verify it
Privacy claims are cheap, so this one is falsifiable: the app has no upload code path at all.
No upload endpoint exists
None of these tools has a POST route, a storage bucket or a proxy. Open DevTools → Network and use them: the only requests are the page assets.
Your designs stay in memory
Colours, shadow layers and gradient stops live in React state inside the tab and are never persisted. Close the tab and they are gone — nothing survives, because nothing was stored.
Contrast is not the whole audit
Passing WCAG AA proves the ratio, not the design: focus states, tap targets and motion still need their own review.
Free forever, no account required — the tools are static pages that run entirely on the client.
Colour and contrast FAQ
Why OKLCH, HSL versus HSV, the AA and AAA thresholds and how transparency affects contrast.
Why bother with OKLCH?
Because it is perceptually uniform: two colours with the same L really do look equally light, and adjusting L or C does not shift the hue. HSL does not guarantee that, which is why Tailwind v4 defines its palette in OKLCH. Note that an OKLCH colour can sit outside sRGB — this tool converts from an sRGB value, so it reports the true in-gamut chroma, which can be slightly lower than a definition written in OKLCH.
What is the difference between HSL and HSV?
The hue is identical; the difference is what the other two numbers describe. HSL positions a colour by lightness (100% is always white), while HSV positions it by value (100% is the pure hue) — most colour pickers use HSV.
What contrast ratio do I need for WCAG AA?
4.5:1 for normal text and 3:1 for large text under AA; AAA asks for 7:1 and 4.5:1 respectively. Large text means at least 18.66px bold or 24px regular.
Why does grey #777777 fail AA on white?
Its ratio is 4.48:1, just under the 4.5:1 threshold, yet it passes the large-text rule at 3:1. One step darker — #767676 — measures 4.54:1 and passes, which shows how tight that boundary is.
Does the checker handle transparency?
The ratio is computed from opaque colours, because a translucent colour has no single luminance; it depends on what ends up behind it. Composite your alpha over the real background first, then check that pair.
Is contrast the only accessibility requirement?
No. Contrast is the measurable part; focus visibility, tap-target size, motion sensitivity and not relying on colour alone all matter too. This panel only claims to check the WCAG contrast ratios.
More free tools in the hub
Box shadow & glass
Stack up to six shadows with offset, blur, spread, colour and inset controls, switch to glassmorphism with backdrop blur, and copy plain CSS or a ready-made Tailwind arbitrary value.
Open toolGradient generator
Build linear or radial gradients with draggable colour stops, an angle dial and a preset library, then copy the CSS background or the matching Tailwind class.
Open toolCSS animations
SoonPick a keyframe pattern, tune the duration, easing and delay, and copy the @keyframes block with the animation shorthand. In development on the same client-side pipeline.
In development