Color Converter

Type a colour in almost any notation — 3, 4, 6 or 8-digit hex, rgb() or rgba() with commas or spaces, hsl(), hsv(), cmyk() or a CSS name like "rebeccapurple" — and see it in every other format at once. The input format is detected automatically, transparency is kept, and contrast against white and black is shown for quick checks.

How to use the Color Converter

  1. Type or paste a colour value, or click one of the examples.
  2. Check the detected format and the swatch.
  3. Copy any single format, or copy all at once.

Features

Benefits

Frequently asked questions

Which input formats are supported?

Hex (#rgb, #rgba, #rrggbb, #rrggbbaa), rgb()/rgba(), hsl()/hsla() including deg, rad and turn units, hsv()/hsb(), cmyk() and CSS colour names.

Why does converting to HSL and back change my colour slightly?

HSL values are rounded to whole numbers for display, which can shift a channel by one step. Use the HEX or RGB value when you need an exact match.

Does it support newer CSS colour spaces like OKLCH?

Not yet. It covers the sRGB-based formats used by most tools: HEX, RGB, HSL, HSV and CMYK.

Related tools