Color Converter, Palette Generator & Contrast Checker

Pick or paste a colour in any format to convert it to HEX, RGB, HSL, HSV and CMYK. Build matching palettes from colour theory, export them as CSS variables, and check text contrast against WCAG accessibility guidelines.

Relative luminance
Contrast on white
on black

Type or paste a colour into any field: hex, rgb(), hsl(), hsv(), cmyk() or a CSS name such as tomato.

Palette generator

Click a swatch to copy · Shift+click to make it the base colour

Contrast checker (WCAG 2)

Large text sample (24px bold)

Normal body text sample. The quick brown fox jumps over the lazy dog.

Contrast ratio
—
AA · normal text (4.5:1)
AA · large text (3:1)
AAA · normal text (7:1)
AAA · large text (4.5:1)
UI components & graphics (3:1)

How to use Chroma Kit

Start with any colour. Use the colour picker, click Random colour, or type into one of the format fields: #1e90ff, 1E90FF, rgb(30 144 255), hsl(210, 100%, 56%), cmyk(88%, 44%, 0%, 0%) or simply dodgerblue. As soon as the value is valid, every other field updates. Each format has a Copy button, and the page address updates so you can bookmark or share the colour.

Below the converter, the palette generator builds a set of colours that work with your base colour, and the contrast checker tells you whether a text and background combination is readable under the Web Content Accessibility Guidelines (WCAG).

Understanding the colour formats

HEX

A hex code writes the red, green and blue channels as two hexadecimal digits each, from 00 (none) to FF (255). #FF0000 is pure red. A three-digit shorthand doubles each digit, so #0AF equals #00AAFF. An optional fourth pair sets transparency: #2563EB80 is roughly 50% opaque. Hex is the most common format in design tools and CSS.

RGB

RGB lists the same three channels as decimal numbers from 0 to 255. It maps directly to how screens emit light, which makes it convenient in code and image editors. rgba() adds an alpha value from 0 to 1.

HSL and HSV

HSL describes a colour as hue (its position on the colour wheel, 0–360°), saturation (how vivid it is) and lightness (from black at 0% through the pure colour at 50% to white at 100%). It is far easier to reason about than RGB: to make a darker button hover state, lower the lightness by 8–10 points and keep the hue. HSV (also called HSB) replaces lightness with value, where 100% is the brightest version of the hue; it is the model behind most colour pickers, including Photoshop’s.

CMYK

CMYK (cyan, magenta, yellow, key/black) describes ink percentages for print. The conversion here is the standard device-independent formula. Real printed results depend on the paper, press and colour profile, such as FOGRA39 or GRACoL, so treat CMYK values from any web converter as a starting point and confirm with your printer. Bright screen colours, particularly vivid blues and greens, often fall outside the range that four-colour ink can reproduce.

Building a palette with colour harmonies

Colour harmonies are positions on the colour wheel that tend to look balanced together:

Click any swatch to copy its hex code, or Shift+click to make it the new base. The CSS box gives you the palette as custom properties ready to paste into a stylesheet.

A widely used guideline for applying a palette is the 60-30-10 rule: about 60% of the design in a dominant neutral or base colour, 30% in a secondary colour and 10% in an accent.

Checking contrast for accessibility

About one in twelve men and one in two hundred women have some form of colour-vision deficiency, and many more people read screens in bright sunlight or with ageing eyes. WCAG defines a contrast ratio between the relative luminance of two colours, ranging from 1:1 (identical) to 21:1 (black on white). The requirements are:

LevelNormal textLarge text*
AA (minimum, required by most accessibility laws)4.5:13:1
AAA (enhanced)7:14.5:1

*Large text is at least 24 px regular or about 18.66 px (14 pt) bold. Icons, form field borders and chart elements need 3:1 against adjacent colours under the non-text contrast rule.

The checker rounds ratios down, never up, so a result that shows 4.49:1 correctly fails AA. When a pair fails the 4.5:1 threshold, Chroma Kit searches the same hue and saturation for the nearest lightness that passes and offers it as a suggestion, which usually preserves your brand feel while fixing the problem.

Practical tips

Frequently asked questions

How do I convert HEX to RGB?

Split the six-digit hex code into three pairs and convert each from base 16 to base 10. For #1E90FF, 1E = 30, 90 = 144 and FF = 255, giving rgb(30, 144, 255). Paste any hex code into Chroma Kit to do this instantly.

Why does my CMYK colour look different when printed?

Screens mix light (RGB) while printers mix ink (CMYK), and the result depends on paper, ink and the printer’s colour profile. This tool uses the standard formula without a profile, so use it as a starting point and confirm colours with a printed proof.

What contrast ratio do I need for accessible text?

WCAG level AA requires at least 4.5:1 for normal text and 3:1 for large text (24 px, or about 18.66 px bold). Level AAA requires 7:1 and 4.5:1. User interface components and meaningful graphics need 3:1.

What is the difference between HSL and HSV?

Both use hue and saturation, but HSL’s lightness puts the pure colour at 50% with white at 100%, while HSV’s value puts the pure colour at 100%. HSL is used in CSS; HSV is the model behind most colour pickers.

Can I enter colours with transparency?

Yes. Use 8-digit hex such as #2563EB80, or rgba() and hsla() values. The alpha value is kept in the HEX, RGB and HSL outputs. Contrast checks use the opaque colour, so check semi-transparent text against its actual rendered result.

How does the palette generator choose colours?

It rotates the hue of your base colour around the colour wheel by fixed angles for each harmony (for example 120° for triadic) while keeping saturation and lightness, or varies lightness for monochromatic and shade palettes.

Are CSS colour names supported?

Yes. All 148 named CSS colours, such as rebeccapurple, tomato and slategray, are recognised and converted to every format.