Convert HEX color codes to RGB values instantly.
Supports 3-digit (#F53) and 6-digit (#FF5733) HEX codes
Enter a HEX color code
Type a value like #FF5733 or #F53 to see the conversion
HEX uses a # prefix followed by 6 hexadecimal digits (0–9, A–F). Each pair of two digits represents one color channel: the first pair is red, the second is green, and the third is blue. HEX is the most compact and widely used color format in web development. It is supported everywhere — CSS, HTML, SVG, canvas, and all design tools.
RGB expresses each color channel as a decimal number from 0 to 255, where 0 means no light and 255 means maximum intensity. The format rgb(255, 87, 51) is more explicit about each channel's value. RGB is essential when you need to manipulate individual channels programmatically, animate colors with JavaScript, or add transparency via rgba().
RGBA extends RGB by adding a fourth value for opacity (alpha), ranging from 0 (fully transparent) to 1 (fully opaque). The format rgba(255, 87, 51, 0.8) is commonly used for semi-transparent backgrounds, overlays, and hover effects. Our converter always shows the RGBA equivalent with alpha set to 1.
HSL represents color as a hue angle (0–360° on the color wheel), saturation percentage (0–100%), and lightness percentage (0–100%). HSL is more intuitive for designers because you can easily create lighter or darker variants by adjusting lightness alone. Our bonus conversion shows the HSL equivalent of your HEX input.
Convert design mockup HEX values to RGB for CSS stylesheets, JavaScript canvas operations, or React/Vue component props.
Build design system tokens in RGB format for theming engines that require separate channel values.
Translate HEX colors from web designs into RGB values for use in image editors, illustrations, and motion graphics.
Convert HEX brand colors to RGB for chart libraries (Chart.js, D3.js) that accept color channel arrays.
Many email clients prefer rgb() notation. Convert your HEX brand colors for maximum email template compatibility.
JavaScript animation libraries and CSS transitions often work with RGB values for smooth color interpolation between states.
Convert RGB color values to HEX color codes instantly.
Convert colors between HEX, RGB, HSL, and more formats.
Create beautiful CSS gradients with a visual editor.
Design custom border radius with a visual editor and copy the CSS.
Design box shadows with a visual editor and copy the CSS.

Founder & Developer of FreeKit
I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.
Remote: Available Now
United States & European company
USD $25/hour or USD $1,500/month
On-site: Open to Relocation
With work visa & travel support