Chroma Color Studio — Palette, Gradient, Scale & WCAG Tool
Convert colors across 14 formats, build palettes, CSS gradients and data scales, and check WCAG and APCA contrast with color-blind previews.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Chroma Color Studio — Palette, Gradient, Scale & WCAG Tool
Convert colors across HEX, RGB, HSL, OKLCH, Lab, LCH, HWB, and CMYK, adjust tones, generate ColorBrewer and Bezier palettes, build multi-stop CSS gradients, map numeric scales, and audit WCAG & APCA contrast.
Chroma Color Studio is a set of color tools built on the chroma.js library. Type a base color in any CSS format and convert it between 14 notations, from HEX and HSL to OKLCH, Lab and CMYK; darken, saturate, mix or average colors; and generate palettes from your own stops, ColorBrewer schemes or OKLCH harmonies. It also builds multi-stop CSS gradients, maps numbers to classed color scales, and checks text contrast with WCAG 2 ratios, APCA Lc values and color-vision simulations. Everything is calculated in your browser, and your base color and working palette are saved in this browser for your next visit.
How to use Chroma Color Studio — Palette, Gradient, Scale & WCAG Tool
- 1
Enter a base color in the box at the top (HEX, RGB, HSL, OKLCH or a CSS name), or pick one with the swatch next to it.
- 2
Use Convert to edit any of the 14 formats or the RGB, OKLCH and opacity sliders, and Adjust to darken, saturate, shift the hue, mix or average colors.
- 3
Open Palette to generate colors from custom stops, ColorBrewer or OKLCH harmonies, then click Use as working palette.
- 4
Build a linear, radial or conic CSS gradient in Gradient, or map numeric data to colors in Scale, and copy or download the CSS.
- 5
Check a text and background pair in Analyze: WCAG and APCA results, the nearest lighter or darker color that passes AA or AAA, and color-blindness previews.
Why use Chroma Color Studio — Palette, Gradient, Scale & WCAG Tool
14 color formats in one place
Edit HEX, RGB(A), HSL, HSV, HWB, Lab, LCH, OKLab, OKLCH, CMYK, GL, relative luminance or a CSS color name; valid input updates every other field, invalid input is highlighted and never applied.
Palettes from stops, schemes or harmonies
Interpolate your own stops in 10 color spaces or along a Bezier curve, pick one of 36 ColorBrewer-style schemes (Viridis included), or rotate the base color's OKLCH hue into complementary, triadic and other harmonies.
Contrast checks with suggested fixes
See the WCAG 2 contrast ratio with AA, AAA and 3:1 UI badges, the APCA Lc value with its usage band, and the closest same-hue color that passes.
Color-vision simulation
Preview a foreground and background as people with protanopia, deuteranopia, tritanopia or achromatopsia see them, with the contrast ratio that remains.
Data scales with class breaks
Map numbers to colors continuously or in equal, quantile, logarithmic, k-means or custom classes, with gamma, padding and a no-data color, and export the legend as CSS.
Exports for code and design files
Copy or download palettes as CSS variables, JSON, SVG, a JavaScript array or chroma.js code, plus PNG swatches and ready-to-paste gradient CSS.
Common use cases
- Turning a brand HEX into OKLCH, HSL or CMYK values for CSS variables and print notes.
- Building a design-token ramp with correctLightness() and exporting it as CSS custom properties.
- Choosing an accessible text color: Analyze suggests the closest same-hue shade that reaches 4.5:1 or 7:1.
- Coloring choropleth maps and charts with quantile, k-means or logarithmic class breaks.
- Comparing a perceptual OKLCH gradient with the browser's plain sRGB blend before shipping it.
Frequently asked questions
Which contrast standards does it check?
WCAG 2.x contrast ratio (4.5:1 for AA body text, 3:1 for large text and UI parts, 7:1 for AAA) and APCA, the perceptual method drafted for WCAG 3, shown as an Lc value with a usage guide. Ratios are truncated, never rounded up, and translucent colors are composited before they are measured.
How are the suggested accessible colors chosen?
The tool keeps your foreground's OKLCH hue and chroma and searches its lightness, darker and lighter, for the first value that reaches 4.5:1 or 7:1 against the background, then offers the option closest to your original color by ΔE 2000.
Why does an OKLCH or Lab gradient look different from a plain CSS gradient?
A plain CSS gradient blends in sRGB, which often dips through grey or muddy midpoints. Interpolating in a perceptual space such as OKLCH or Lab keeps lightness and saturation more even; the Gradient tab samples that scale into CSS stops and shows the plain sRGB blend underneath for comparison.
How accurate is the color-blindness simulation?
It applies the Machado, Oliveira and Fernandes (2009) matrices at full severity in linear RGB, which approximates complete dichromacy and monochromacy. Real color vision varies from person to person, so treat it as a check, not a diagnosis.
Is my palette saved?
Yes, in this browser. Your base color and working palette are stored in localStorage, so they are still there the next time you open the tool on this device. The tool makes no network requests with your colors.
What is the difference between a ColorBrewer scheme and class breaks?
A ColorBrewer scheme is a fixed set of colors designed for maps. Class breaks decide which values share a color: equal intervals split the range evenly, quantiles put the same number of values in each class, and k-means groups values that sit close together.