Which colour formats are supported?
The converter supports common CSS hexadecimal, RGB/RGBA, and HSL/HSLA notation.
DEVELOPER TOOL
Convert validated CSS colour values between hex, RGB, and HSL formats.
Accepts 3/4/6/8-digit hex plus rgb(), rgba(), hsl(), and hsla() forms, including percentage channels and modern slash alpha.
HEX: #5b4b8a RGB: rgb(91, 75, 138) HSL: hsl(255 30% 42%)
Colour conversion runs locally in your browser.
The converter supports common CSS hexadecimal, RGB/RGBA, and HSL/HSLA notation.