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:
- Complementary: the colour opposite on the wheel (180°). High contrast and energetic; use one as the main colour and the other sparingly as an accent, for example for calls to action.
- Analogous: neighbours 30° and 60° either side. Calm and cohesive, common in nature and in branding that wants a single mood.
- Triadic: three hues spaced 120° apart. Vibrant but balanced if one colour dominates and the others support.
- Split-complementary: the base plus the two hues beside its complement (150° and 210°). It offers strong contrast with less tension than a straight complement.
- Tetradic: four hues 90° apart. Rich, but hard to balance; usually best with muted saturation.
- Monochromatic: one hue at different lightness levels, a safe choice for interfaces and data visualisation.
- Shades 50–800: a scale from very light to very dark, in the style used by design systems such as Tailwind CSS. Light steps suit backgrounds and borders; dark steps suit text and hover states.
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:
| Level | Normal text | Large text* |
|---|---|---|
| AA (minimum, required by most accessibility laws) | 4.5:1 | 3:1 |
| AAA (enhanced) | 7:1 | 4.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
- Grey text on white is the most common contrast failure.
#767676is the lightest mid-grey that passes AA on pure white. - Do not rely on colour alone to convey meaning. Pair red and green status colours with icons or text labels.
- Check hover, focus and disabled states as well as default ones. Placeholder text in form fields must also be readable if it carries information.
- When matching a brand colour from a logo file, sample the colour from the original vector file rather than a compressed JPEG, which shifts colours slightly.
- Saturated colours look brighter on dark backgrounds. In dark themes, reduce saturation slightly to avoid colours that seem to vibrate.
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.