Images & Design
Color Code Converter & Picker
Convert HEX, RGB, and HSL, inspect contrast, and build useful tints and shades.
Interactive tool
Loading the local tool…
Convert one opaque sRGB color three ways
Work from a picker or code, copy equivalent formats, and test a foreground/background pair against disclosed contrast thresholds.
The tool parses three- or six-digit HEX, integer RGB channels, or HSL percentages, then normalizes the same opaque sRGB color into all three representations. Hue wraps around the color circle; RGB channels remain integers from 0 through 255.
Contrast follows the WCAG 2.2 relative-luminance and contrast-ratio definitions. Tints and shades are simple disclosed channel mixtures toward white or black, not perceptually uniform palette recommendations.
Method summary: Converts opaque sRGB color representations, computes WCAG 2.2 relative luminance and contrast, and linearly mixes RGB channels toward white or black for tints and shades.
Method references
Limits worth knowing
- The tool covers opaque sRGB; alpha and wide-gamut profile conversion are excluded.
- A contrast ratio does not simulate every font, anti-aliasing, gradient, transparency, or viewing condition.
- CMYK is excluded because a reliable print conversion requires a specific color profile.
Useful ways to try it
- Convert #0F6B3B to RGB and HSL.
- Check dark text against a beige surface.
- Copy a 20% tint for a lightweight mockup.
Questions worth asking
Why does the tool exclude CMYK?
CMYK values depend on an ink, paper, press, and color profile. A generic browser conversion would imply print precision the tool cannot provide.
Does passing the ratio make every design accessible?
No. Contrast is one requirement. Text size, weight, states, layout, motion, labeling, and real content still need separate review.