Free Online Color Tools

Convert color formats, check accessibility contrast, build palettes and generate CSS gradients and shadows — with live previews and copy-ready CSS.

Live preview Copy-ready CSS No sign-up Free

Which Color Tool Do I Need?

  • You have a color in one format and need another (a HEX code from a design file, an rgb() value from DevTools): the Color Converter translates between HEX, RGB, HSL, HSV and OKLCH.
  • You need to know whether text is readable on a background: the Contrast Checker computes the WCAG 2.1 contrast ratio and tells you whether it passes AA and AAA for normal and large text.
  • You have one brand color and need a full palette: the Color Palette Generator builds a 50–900 shade scale and harmony palettes (complementary, analogous, triadic…) and exports them as CSS variables or a Tailwind config.
  • You need inspiration or test values: the Random Color Generator produces random colors you can keep or regenerate.
  • You are styling a component: the Gradient Generator (linear, radial, conic) and the CSS Shadow Generator produce CSS you can paste directly.

HEX, RGB, HSL or OKLCH?

HEX and RGB describe the same thing — amounts of red, green and blue — and are what most design tools export. HSL is easier to adjust by hand: change the lightness to get a darker shade of the same hue. Its weakness is that equal lightness values do not look equally bright (a yellow and a blue at 50% lightness differ a lot). OKLCH fixes that: its lightness matches human perception, which makes it the better choice for building consistent palettes and design tokens. All modern browsers support oklch() in CSS. For a full comparison, read our guide to CSS color formats.

Contrast Is Not Optional

WCAG level AA asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (about 24 px, or 18.66 px bold). Light gray text on white is the most common failure. Check your text and background pairs before you finalize a palette, not after — changing a brand color late is far more expensive. If you work with transparent colors, the Color Opacity Calculator gives the rgba() and 8-digit HEX values.

How They Run

All color tools compute their results with JavaScript in your browser. Nothing you enter is sent to a server.