Color converter
Convert sRGB HEX, RGB and HSL colors including alpha transparency.
sRGB. HEX accepts 3, 4, 6 or 8 digits. HSL converts to nearest 8-bit RGB; alpha rounds to 8 bits only in HEX. Neutral hue is reported as 0. Each format retains its own input values.
HEX: 3/4/6/8 digits, optional #. RGB: integer channels 0–255. HSL: hue 0–360, saturation/lightness 0–100%. Alpha 0–1. Achromatic hue is 0; 360° wraps to 0°. HSL outputs describe rounded RGB, and HEX alpha may differ by one quantization step. No profiles, named colors or wide-gamut conversion.
The formula, made simple
Convert sRGB HEX, RGB and HSL colors including alpha transparency.
HSL maps hue to the RGB color wheel, then applies chroma and lightness. RGB channels round to 8-bit integers; HEX alpha rounds alpha × 255.
A worked example
HEX #FF000080 gives RGB 255, 0, 0 with alpha about 0.502, HSL hue 0°, saturation 100% and lightness 50%.
A few useful answers
What does this tool support?
HEX: 3/4/6/8 digits, optional #. RGB: integer channels 0–255. HSL: hue 0–360, saturation/lightness 0–100%. Alpha 0–1. Achromatic hue is 0; 360° wraps to 0°. HSL outputs describe rounded RGB, and HEX alpha may differ by one quantization step. No profiles, named colors or wide-gamut conversion.
Does this upload my input?
No. Processing and output stay in this page. Analytics never includes raw text, tokens, generated identifiers or results.