Color Converter

Convert colors between HEX, RGB, HSL and HSV, including alpha transparency, with a live browser-local preview.

Color input Choose a format, then enter a color value to convert.
Accepted notation HEX supports 3, 4, 6 or 8 hexadecimal digits. Eight-digit HEX uses RRGGBBAA order.
Color preview #3366CC
Opacity100%
WCAG relative luminance0.146
HEX
#3366CC
HEXA
#3366CCFF
RGB / RGBA
rgb(51, 102, 204)
HSL / HSLA
hsl(220, 60%, 50%)
HSV / HSVA
hsv(220, 75%, 80%)
CSS variable
--color: #3366CC;
Done
Color converted

Equivalent HEX, RGB, HSL and HSV values are shown below.

Red51
Green102
Blue204
Alpha1
Browser-localYour color value stays on your device. Only non-content usage metadata may be recorded.
Multiple formatsConvert between HEX/HEXA, RGB/RGBA, HSL/HSLA and HSV/HSVA without external services.
Alpha-awareTransparency is preserved where the input format provides it, including four/eight-digit HEX and alpha function values.

HEX & RGB

HEX is a compact hexadecimal representation of RGB channels. RGB expresses the same red, green and blue channels as decimal values from 0 to 255.

HSL & HSV

HSL describes hue, saturation and lightness, while HSV uses hue, saturation and value. Their saturation scales describe different color models and are not interchangeable.

Alpha transparency

Alpha ranges from fully transparent at 0 to fully opaque at 1. Eight-digit HEX appends the alpha byte after the RGB bytes.