Colour converter.

Paste a colour in any CSS format, or pick one, and copy it as HEX, RGB, HSL, HWB, OKLCH or approximate CMYK. See instantly whether white or black text reads better on it.

Runs in your browser. Nothing you enter is sent to KRA Digital or anyone else.

How to use it

  1. Type or paste a colour: #1e90ff, rgb(30 144 255), hsl(210 100% 56%), a name such as teal, and more.
  2. Or use the colour picker.
  3. Copy the format you need from the table.
  4. Check the contrast line to choose white or black text on that colour.

Questions

What is OKLCH?

A colour format based on the OKLab model, where equal changes in lightness look roughly equal to the eye. It is useful for building consistent palettes and is supported in modern CSS.

Why is CMYK only approximate?

Real print colours depend on the printer, inks, paper and colour profile. The formula here is a simple conversion; ask your printer for a proof for brand-critical work.

Which formats can I paste?

Anything your browser understands as a CSS colour, including HEX with alpha, rgb(), hsl(), hwb() and the 148 named colours.

Let’s build something great.

Tell us what you want to build, who it is for and what it needs to do. We’ll help you define a practical next step.

Start a project