Skip to content
FizzKit

Color Converter

Paste any colour — hex, rgb(), hsl(), hwb(), lab(), lch(), oklab(), oklch(), color(display-p3 …) or one of the 148 CSS names — and get every other format with one-click copy, plus Tailwind, CSS-variable, Swift and Android snippets. Check WCAG 2.1 and APCA contrast against any background with nearest-passing suggestions, build tints, shades, tones and Tailwind 50→950 scales (exported as config, CSS vars or oklch()), and convert whole lists in batch with CSV export. Includes RGB/alpha sliders, the native picker, an EyeDropper on supported browsers, recent-colour history and shareable links.

Runs locally in your browser
Preview
#6366f1≈ mediumslateblue
on white
4.47:1 · AA Large
on black
4.70:1 · AA
Snippets
Luminance
0.1851
OKLCH lightness
58.5%
Hue
239°
Alpha
1
Named
≈ mediumslateblue
Perceived
light

How to use Color Converter

  1. 1Type or paste a colour in any CSS syntax, pick one, or use the eyedropper.
  2. 2Copy the format you need from the list, or open the sliders to tweak channels and alpha.
  3. 3Switch to Contrast to test it against a background and pick a passing suggestion.
  4. 4Use Ramps for tints, shades and a Tailwind 50→950 scale, or Batch to convert a whole list.

About Color Converter

Paste any colour — hex, rgb(), hsl(), hwb(), lab(), lch(), oklab(), oklch(), color(display-p3 …) or one of the 148 CSS names — and get every other format with one-click copy, plus Tailwind, CSS-variable, Swift and Android snippets. Check WCAG 2.1 and APCA contrast against any background with nearest-passing suggestions, build tints, shades, tones and Tailwind 50→950 scales (exported as config, CSS vars or oklch()), and convert whole lists in batch with CSV export. Includes RGB/alpha sliders, the native picker, an EyeDropper on supported browsers, recent-colour history and shareable links.

Color Converter is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.

Frequently asked questions

Input and output cover hex (3/4/6/8 digits), rgb()/rgba() in legacy and modern syntax, hsl(), hwb(), hsv, cmyk, lab(), lch(), oklab(), oklch(), color(display-p3 …) and all 148 CSS named colours. Out-of-gamut colours are clipped to sRGB and flagged.