Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Colour

Colour Converter

Enter a colour in almost any CSS notation and get every other notation back, plus a WCAG contrast reading against black and white.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

One colour in, six notations out

Type a colour in almost any CSS form and the tool prints HEX, RGB, HSL, HSV, CMYK and OKLCH lines together. It reads three, four, six and eight digit hex with or without a leading hash, rgb() and rgba() with commas or spaces, hsl() and hsla(), and the CSS colour names it knows. Alpha survives the trip.

Checking a shade for contrast

Each run also reports contrast against white and black plus relative luminance. A ratio of 4.5 or better is tagged AA, so settling body text on a brand background becomes a quick check rather than a separate audit.

There is nothing to configure

This converter has no switches: everything is derived from the single value you paste, and the output is one line per notation. That makes it easy to lift just the format you need into a stylesheet or design token file.

Where parsing stops

OKLCH is produced but not accepted on the way in, and the named colour list is the built-in set rather than the full CSS list. Hex strings of five or seven digits are rejected, and an unreadable value raises an error quoting the text that failed.

Colour maths stays local

Every conversion happens in the page with plain arithmetic. The value you type is never transmitted, and the contrast figures are computed on your device rather than fetched from a service.

Questions

Which input formats are accepted?

#rgb, #rgba, #rrggbb, #rrggbbaa, rgb()/rgba() with commas or spaces, hsl()/hsla(), and the 148 CSS named colours.

Is OKLCH accepted as input?

No. OKLCH is calculated as an output notation only; input must be hex, rgb(), hsl() or one of the built-in colour names.

How is the contrast ratio shown?

Contrast against pure white and pure black is printed with two decimals and a ratio of 4.5:1 or higher is marked AA. Relative luminance is reported separately.

See category