Utilo

Color Converter & Picker

Free color converter for HEX, RGB, HSL and OKLCH. Pick a color, copy the CSS, and build tints and shades instantly in your browser. No signup.

What this color converter does

Designers hand over colours in HEX, CSS frameworks use RGB or HSL, and modern design systems increasingly specify OKLCH for perceptually even palettes. This converter accepts any of these formats, shows the colour in all of them, and generates a row of tints and shades so you can build hover states and backgrounds from a single brand colour.

How to use it

  1. Type a colour as #6366f1, #63f, rgb(99, 102, 241) or hsl(239, 84%, 67%), or pick one with the colour picker.
  2. Read the HEX, RGB, HSL and OKLCH equivalents and copy the one your codebase uses.
  3. Click any swatch in Tints & shades to make it the active colour.

Practical examples

  • Design tokens: convert a brand HEX into OKLCH, then adjust only the lightness value to produce a consistent 50–950 scale.
  • Hover states: pick the shade one step darker than your button colour for :hover.
  • Accessibility: a background from the light tints with dark text usually meets WCAG contrast requirements; check with a contrast checker before shipping.
  • Legacy CSS: turn an hsl() value from a design tool into HEX for an email template where modern syntax is not supported.

Tips and edge cases

  • Three-digit HEX is shorthand: #63f equals #6633ff.
  • HSL lightness is not perceptual; yellow at 50% looks much brighter than blue at 50%. OKLCH fixes this, which is why it is preferred for generated palettes.
  • Alpha values in rgba() are accepted but ignored in the output; append them manually if you need transparency.
  • Values outside the sRGB gamut cannot be represented in HEX and are clamped.
  • The text colour on the preview switches between black and white based on luminance for readability.

Frequently asked questions

What is OKLCH?

A colour space with lightness, chroma and hue axes designed so that equal numeric steps look equally different to the human eye. It is supported in all modern browsers via oklch().

Is HEX the same as RGB?

Yes, HEX is just RGB written in hexadecimal: each pair of digits is one channel from 00 to FF (0–255).

How are tints and shades calculated?

Tints mix the colour with white and shades mix it with black in fixed steps of 20% to 90%. This is a quick, predictable method; OKLCH lightness adjustments give more even results.

Does it support named colours like "tomato"?

Not currently. Enter the HEX or RGB value of the named colour instead.

Yes. All processing happens directly in your browser using JavaScript, Web Workers and Web APIs. Nothing you type, paste or upload is sent to our servers.