How to use
Type a color in the input at the top: #3b82f6, rgb(59 130 246), hsl(217 91% 60%), oklch(62% 0.19 260), cmyk(76% 47% 0% 4%) or a name like royalblue. You can also use the color picker or, where supported, the eyedropper.
Open the Convert tab to see every format and copy any of them. The nearest CSS color name is shown too.
Open the Contrast tab and set a background. You get WCAG results for normal text, large text and UI components, plus APCA Lc. When a pair fails, the tool suggests the closest text color that passes while keeping the hue.
Open the Palette tab to build a scheme (complementary, analogous, triadic and more), a 50–950 OKLCH scale and tints/shades. Click a swatch to copy it, or export as CSS variables, JSON or Tailwind.
Open the Vision tab to see how a list of colors looks with protanopia, deuteranopia, tritanopia and achromatopsia, and which pairs become hard to tell apart.
What it does
Six input formats, instant conversion
Enter HEX (3 or 6 digits), rgb(), hsl(), hwb(), oklch(), cmyk() or one of the 148 CSS color names, and copy any other format. Alpha (transparency) is not supported.
WCAG 2.x and APCA side by side
Contrast ratios come from relative luminance and are never rounded up to pass: 4.499 is shown as 4.49 and fails 4.5:1. APCA Lc (W3 0.0.98G-4g constants) is shown as a reference value.
Schemes and scales in OKLCH
Hue rotation and lightness steps happen in perceptually uniform OKLCH, so a yellow and a blue of the same step look comparably bright. Colors outside sRGB are mapped in by lowering chroma while keeping lightness and hue.
Experience color-vision differences
The Machado et al. (2009) matrices are applied in linear RGB for protanopia, deuteranopia, tritanopia (full severity) and achromatopsia. Pairs that end up closer than 0.04 in OKLab are listed as hard to distinguish.
Four export formats
CSS custom properties, JSON, Tailwind v4 @theme and a Tailwind v3 config object. Name the palette, then copy it or save it as a file.
Use cases
- Turn a color from a design mock-up into HEX, HSL or OKLCH for CSS
- Check that button or body text colors meet WCAG 2.x AA
- Create a 50–950 color scale for Tailwind from a brand color
- Check in advance whether chart series colors are distinguishable with color-vision deficiency
- Pick a color anywhere on screen with the eyedropper and copy it as code
Capability matrix
| Feature | Support | Notes |
|---|---|---|
| HEX / RGB / HSL / HWB / OKLCH conversion | Supported | CSS syntax, comma or space separated |
| CMYK conversion | Partial | Naive approximation without an ICC profile; not for print color matching |
| CSS named colors (148) | Supported | Also shows the nearest name |
| WCAG 2.x contrast checks | Supported | Normal text, large text and UI components (AA/AAA) |
| APCA Lc | Partial | Reference only; WCAG 3 is still a draft and APCA is not a conformance criterion |
| Color-vision simulation | Partial | Full-severity approximation models; cannot reproduce individual or mild differences |
| Eyedropper for on-screen colors | Partial | Only in browsers with the EyeDropper API (Chrome, Edge, etc.); not Firefox or Safari |
| Alpha, Display P3, LAB/LCH and other non-sRGB spaces | Not supported | sRGB only for input and output; values with transparency are rejected |
| Extracting colors from an image | Not supported | Image import is not supported (the eyedropper can pick on-screen colors) |
| Offline use | Supported | Works without a connection once loaded |
Limits & notes
- Only sRGB colors are supported; alpha values (rgba() or #rrggbbaa) are rejected.
- The color vision list accepts up to 24 colors.
- OKLCH output is rounded to 1–3 decimals, so converting a saturated blue back can differ by a few 8-bit steps.
- CMYK is an approximation and does not guarantee printed color.
- Works on phones too, but comparing palettes and vision previews is easier on a PC (PC recommended).
Privacy & safety
Colors you enter and the exports you create are processed only in your browser and are never sent anywhere. Colors picked with the eyedropper stay in the browser as well.
FAQ
How do I convert HEX to HSL or OKLCH?
What contrast ratio do WCAG AA and AAA need?
Can APCA Lc replace WCAG contrast?
Why build palettes in OKLCH?
Why is the eyedropper missing?
Related tools
CSS Analyzer (CSS Studio)
Paste CSS or drop a .css file to see the most specific selectors, CSS custom properties that are defined but never used, var() calls with no definition, every color in use, and !important, repeated declarations and empty rules. This tool only reads; it never changes your input.
Image Color Palette Extractor
Drop a photo or design to get its main colours as a palette of 3 to 16 swatches, each with its share and colour codes. Click anywhere on the image to pick that exact colour. Your image is never uploaded.
SVG Studio
Load an SVG file or paste code to get a safe preview and a check of what is inside. Shrink it with SVGO, export PNG or WebP, turn it into a data URI, CSS or React code, and format it — all inside your browser.
Font Studio
Drop a font file to see its names, glyph count and character coverage (JIS levels, jōyō kanji and Unicode blocks), and preview any text. Compare fonts side by side, convert to WOFF2 or WOFF, or keep only the characters you list. Everything runs in your browser and the font is never uploaded.
Image to SVG
Traces a PNG, JPEG, WebP or BMP into an SVG that stays sharp at any size. Best for logos, line art, handwriting and icons; a photo becomes a posterized picture with fewer colors. The image is processed only in your browser and never sent anywhere.
PSD Viewer & Layer Export
Open a PSD file in your browser and export the whole image or chosen layers to PNG, JPEG or WebP. No special software needed, and the file is never sent anywhere.
Last updated: