When this tool helps
- Move a design token between CSS formats
- Inspect RGB channel values from a HEX code
- Adjust hue, saturation or lightness in HSL
GENERATORS
Convert a HEX color to matching RGB and HSL values.
PRACTICAL GUIDE
Last reviewed
Translate one sRGB color between HEX, RGB and HSL notation. The notations describe the same browser color through different coordinate systems; conversion does not create a wider color gamut.
All outputs describe the same sRGB color, subject to display calibration.
Formula: HEX channel pairs convert to decimal RGB values from 0 to 255; HSL is derived from normalized RGB minimum, maximum and delta values
No. It changes the notation, not the underlying sRGB channel values.
This tool currently handles opaque six-digit HEX colors only.
Tools may round intermediate values differently while producing visually equivalent colors.