Convert between HEX and RGB colour codes instantly. Includes HSL, CSS and more.
Switch between the two most common colour formats instantly, in either direction.
A 3- or 6-character hexadecimal string prefixed with # that represents a colour's red, green, and blue values. Each pair of hex digits maps to a 0β255 value: #E85D04 means red 232, green 93, blue 4.
Red, Green, Blue β the three colour channels in additive colour mixing. Each ranges from 0 to 255 (8 bits per channel), so RGB can express roughly 16.7 million distinct colours.
Three pairs of hex digits, one pair per channel. Two hex digits store a single byte (0x00β0xFF), which is exactly the 0β255 range each RGB channel uses.
Yes β shorthand notation. #F60 expands to #FF6600. Useful when each channel has both nibbles equal; otherwise you need the full 6-digit form.
RGBA adds an alpha (opacity) channel from 0 (fully transparent) to 1 (fully opaque). The hex equivalent is RGBA / 8-digit hex (#RRGGBBAA), supported in modern browsers.
Web developers and designers shuffle between HEX and RGB colour formats constantly β and the conversion math, while not difficult, is the kind of small task that breaks flow. The ConvertDox HEX β RGB Converter handles both directions live: type in one format and the other updates instantly, with a colour swatch confirming the result. It accepts both shorthand 3-digit hex codes (#F60) and full 6-digit codes (#FF6600), and accepts RGB values as comma-separated numbers, function-call syntax (rgb(255, 102, 0)), or just digits separated by spaces. The conversion is bidirectional and lossless because both formats describe the same underlying 8-bit-per-channel sRGB colour. Working in your browser means no data leaves your device β relevant if you're sampling colours from confidential brand guidelines. For broader colour work, ConvertDox includes a palette generator, a CSS gradient builder, and a colour blindness simulator β but for the single most common conversion task in web work, this page is the fastest. See our HEX vs RGB guide for when to choose one format over the other.