Source format does not match the tool
Conversions fail when the pasted input is not actually in the expected source format.
Fix: Verify the source format first, then paste it into the correct converter.
header • up to 320x100 / 728x90
Convert HEX color to RGB
Paste a HEX color and inspect synchronized derived formats.
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Hexadecimal (base 16) uses digits 0-9 and letters A-F to represent bytes compactly, widely used for colors, hashes, and low-level binary data.
HEX to RGB Converter parses a hexadecimal color literal (#RGB, #RRGGBB, or #RRGGBBAA) and returns the equivalent rgb() or rgba() triple in the 0–255 integer range that CSS, design software, and graphics APIs expect.
Shorthand 3-digit hex like #fb0 is expanded to #ffbb00 before conversion; 8-digit hex preserves the alpha channel and emits rgba() with the matching 0-1 floating-point alpha.
Paste your HEX input so it can be converted into RGB for your next step.
Get RGB output converted from HEX that is ready to review, copy, or export into the next step of your workflow.
Conversions fail when the pasted input is not actually in the expected source format.
Fix: Verify the source format first, then paste it into the correct converter.
Broken rows, missing fields, or incomplete markup can block conversion.
Fix: Use a complete input sample with the structure intact before converting it.
Different target formats can flatten, restructure, or serialize values differently.
Fix: Review the converted output and confirm it matches the target system before using it downstream.
Yes. 3-digit shorthand hex is expanded to its 6-digit equivalent before conversion (#f80 → #ff8800), matching the rule used by CSS and Sass. The expanded value is shown in the output so you can verify.
Yes. 8-digit hex (#RRGGBBAA) includes an alpha byte; the converter maps that byte to an rgba() alpha between 0 and 1 rounded to 2 decimals. For example, #ff804080 becomes rgba(255, 128, 64, 0.5).
They're semantically identical — both describe the same color. The comma-separated form is the legacy CSS syntax; the space-separated form is the modern one introduced in CSS Color Module Level 4. The tool emits both so you can pick whichever matches your project's style guide.
It shouldn't — hex and rgb are two notations for the same sRGB color space, so the mapping is exact and lossless. Visual drift usually means the surrounding context (transparency, blending mode, or an ICC profile) is different, not the color math.
Indirectly. Named colors first resolve to a hex value via the CSS Color Module lookup table — use our Named Color to HEX tool to go from 'tomato' to #ff6347, then feed that into the HEX to RGB converter.
The standard hex format describes only sRGB colors, so there's no ambiguity. For wide-gamut color, you'd use the CSS color() function with explicit color-space syntax rather than hex — our OKLCH and color-mix tools cover those cases.
Continue the workflow with related tools for hEX to RGB, adjacent input and output steps, or other utilities in the same category. You can also browse the full Color Converters category for more options.
Convert RGB color to HEX
Convert HEX color to HSL
Convert HEX color to HSV
Convert HEX color to CMYK
Convert HEX color to OKLCH (CSS native)
Convert HSL color to HEX
Convert HSL color to RGB
Convert HSV color to HEX
Convert HSV color to RGB
Convert RGB color to HSL
Convert RGB color to HSV
Convert CMYK color to HEX