Productivity / Free browser tool
Color Studio: Convert, Palette, Contrast
One color written five ways, a palette built from tints, shades and harmonies, and a contrast checker that uses the WCAG 2.1 relative-luminance formula rather than a guess.
No account or install. Tool input is processed on your device.
The picker writes the same three bytes as the fields above. Hex values are read as sRGB.
Ready to paste
background: #4f46e5; color: #ffffff;
That is not a color this tool can read.
Tints, shades and harmonies are all derived from this one value.
Produces --brand, --brand-tint-15, --brand-complement and so on.
That is not a color this tool can read.
CSS variables
--brand: #4f46e5;
Enter two hex or rgb() colors.
Normal text at 16 pixels. The quick brown fox jumps over the lazy dog, 0123456789.
Large text at 24 pixels.
Both samples use the same two colors. Only the thresholds change with size.
About this tool
Convert a color between HEX, RGB, HSL and HSV without changing its 8-bit sRGB channels. Editing any representation updates the others. HSL and HSV share a hue angle but define their saturation and lightness or value channels differently.
The contrast tab uses the WCAG 2.1 relative-luminance formula for opaque sRGB colors. It linearizes each channel, applies the coefficients 0.2126, 0.7152 and 0.0722, then calculates (L1 + 0.05) / (L2 + 0.05). Results include the AA and AAA thresholds for normal and large text.
The palette tab creates tints, shades and harmonies by mixing in sRGB. These steps are not perceptually uniform, so equal numerical changes may not look equally spaced. Every swatch can be copied as HEX, and complete sets can be exported as CSS custom properties.
HSL is not HSV
Both describe a color with a hue angle and two percentages, but the second percentage means something different. In HSL, a hue at 100% saturation and 50% lightness is the pure color. In HSV, the pure color sits at 100% saturation and 100% value, and the value channel controls how much black is mixed in. hsl(243, 75%, 59%) and hsv(243, 69%, 90%) describe the same pixels; copying the three numbers from one notation into the other does not.
That matters when a design tool shows one notation and the stylesheet needs the other. The fields in the convert tab are independent: type into any of them and the other four follow, so a value read out of a screenshot as HSV can be pasted straight in.
Why the linearization step matters
The WCAG formula does not average the red, green and blue bytes. It first converts each channel to linear light: a channel at 0.03928 or below is divided by 12.92, and anything above goes through ((c + 0.055) / 1.055)2.4. Only then are the 0.2126, 0.7152 and 0.0722 weights applied.
Skipping that step is the usual mistake. Mid-grey #777777 on white comes out at 4.48:1 with the formula and 2.03:1 if you average the raw bytes — one of those sits a hair under the AA threshold for normal text, and the other is nowhere near it.
Contrast ratios here describe two solid, fully opaque colors. Gradients, background images, transparency and thin or decorative type are not accounted for, and a passing ratio is a floor rather than a guarantee of comfortable reading.
How it works
Convert one color
Type a hex value, an rgb() function or an hsl() value into any field and the other four follow. The native picker writes to the same state.
Generate a palette
A base color produces 21 swatches across five sets. Click a swatch to copy its hex, or copy the whole set as CSS custom properties.
Check a pair
Two colors, four thresholds, one ratio to two decimals. The preview shows normal and large text in the same pair.
Common questions
Which contrast standard does this use?
WCAG 2.1 relative luminance, the formula behind success criteria 1.4.3 and 1.4.6. WCAG 2.2 kept the same formula for both. APCA, the candidate replacement used by some newer tools, is a different model with different thresholds and is deliberately not implemented here.
Does the palette use OKLCH or Lab?
No. Tints and shades are mixed in sRGB, the same way most design tools and CSS color-mix() in srgb do it. Perceptual spaces give more even steps, but the output would be oklch() values that older browsers reject. Every swatch here is a plain hex value that works everywhere.
Can I enter a color with transparency?
An eight-digit hex value is read and its alpha channel is ignored, because a contrast ratio needs two opaque colors. If a real interface uses 60% opacity, compute the composite color first and check that.
Why do the HSL and HSV fields show whole numbers?
Hue, saturation and lightness are stored as decimals internally and printed as integers, so a conversion chain can move a channel by one step out of 255. That is the resolution of 8-bit sRGB, not a rounding bug.
What counts as large text?
WCAG defines large text as 18pt (24px) or 14pt (about 18.66px) when bold. The 3:1 threshold applies to that text only; everything smaller needs 4.5:1 at AA and 7:1 at AAA.
Related tools
Unit converter
Twelve categories, exact factors and one table that shows the same quantity in every unit. Pick two units, type a value, then click any row to look at it from the other side.
Regex tester
The browser's own regex engine, your text, and the matches marked in place. Flags, named groups and a replacement string are one keystroke away.
Timestamp converter
Paste an epoch value and read it six ways, or turn a date into seconds and milliseconds. The unit is detected, but never guessed silently.