Contrast Checker
Check foreground and background contrast against accessibility thresholds.
Pick a colour and read off its HEX, RGB and HSL values.
Pick a colour or type a value; HEX, RGB and HSL are each one click from the clipboard.
Starts at #ff6b6b with eight preset swatches; the hex field accepts both #abc and #aabbcc, with or without the hash.
The hex and RGB fields stay in sync: editing hex updates every readout, editing RGB writes back to hex, and an invalid hex leaves the previous colour in place.
A hue slider covers 0–360° and an opacity slider covers 0–100%, both feeding the preview swatch above.
HEX, RGB, HSL and HSV are all shown, each with its own copy button; HSV is the model behind the sliders, while HSL is the friendlier form for CSS.
All four outputs are alpha-free: opacity affects the preview only, so rgba() or hsla() needs its fourth argument added by hand.
Pick a starting point
Click a preset swatch, or paste a value into the hex field.
Adjust the hue
Drag the 0–360 slider to find a nearby shade of the colour you already have.
Adjust opacity
Opacity changes the preview only, which is enough to judge how the colour sits on a background.
Copy the format you need
Use HSL for CSS and HEX for most design tools; each row copies on its own.
The slider does, but the four outputs do not carry alpha: hex is six digits, and RGB and HSL omit the fourth argument. Opacity only affects the preview, so add the alpha value yourself when writing rgba() or hsla().
Only three- or six-digit hex is accepted, with the hash optional. While the input contains other characters or has the wrong length, the colour keeps its last valid value and the field still shows what you typed.
HSL lightness puts a pure colour at 50%, while HSV value puts it at 100%. The sliders here work in HSV, which is why dragging the hue does not wash the colour out; use the HSL row for CSS.
No. This page uses the native colour picker and typed values, not screen pixels. To sample from a screenshot or photo, use the Image Color Picker tool.
Check foreground and background contrast against accessibility thresholds.
Build CSS linear and radial gradients visually, then copy the code.
Tune a box shadow visually and copy the CSS.
Convert physical units across length, weight, volume and more.
Convert between bytes, KB, MB, GB and TB.
Tune each corner visually and copy the CSS border-radius.