DD
DevDash

Hex to RGB Converter — Convert Hex Color Codes

Quick Answer: Enter a hex color code (e.g., #1a73e8) to get the RGB values (26, 115, 232). Each pair of hex digits represents one color channel: the first two are red, middle two are green, last two are blue. Values range from 0-255 (00-ff in hex).

rgb(109, 40, 217)

hsl(263, 70%, 50%)

CSS Values

color: #6d28d9;

color: rgb(109, 40, 217);

color: hsl(263, 70%, 50%);

FAQ

How do hex color codes work?

Hex codes use 6 hexadecimal digits: #RRGGBB. Each pair (00-ff) represents intensity for red, green, and blue. #000000 is black, #ffffff is white.

What about 3-digit hex codes?

#RGB is shorthand for #RRGGBB. Each digit is doubled: #f00 = #ff0000 (red), #abc = #aabbcc. Supported everywhere in CSS.

Want API access + no ads? Pro coming soon.