Color Hex / RGB Converter
Convert between hex color codes (#FF5733) and RGB triplets (255, 87, 51). Includes HSL representation and color preview.
What is Color Hex / RGB Converter?
The hex/RGB color converter handles the basic color value conversions web developers and designers need.
Formula
Hex is two characters per channel (00–FF) for red, green, blue. RGB is decimal 0–255 per channel. HSL is hue (0–360°), saturation (0–100%), lightness (0–100%).
Worked example
#FF5733 = rgb(255, 87, 51) = hsl(11°, 100%, 60%) — a vibrant orange-red.
How to use this calculator
- Enter color in hex or RGB format.
- All three representations appear simultaneously.
Frequently asked questions
What's the difference between hex and RGB?
Same color, different notation. Hex is base 16 compact form; RGB is base 10 decimal. Hex (#FF5733) is web-standard. RGB is more readable for ranges.
What about alpha (transparency)?
Hex with 8 chars (#FF5733FF) includes alpha. RGB has rgba() syntax: rgba(255, 87, 51, 1.0) where 1.0 is fully opaque. Most browsers support both.
When do designers use HSL?
HSL is intuitive for adjustments — change hue without affecting saturation. Useful for design systems where you generate variations of a base color.
What about color spaces beyond RGB?
RGB is for screens. CMYK is for print. LAB is the perceptually uniform space (closest to human vision). Web work uses RGB; print work uses CMYK; advanced color manipulation uses LAB.