HEX to RGB Converter
Convert 3-digit or 6-digit hexadecimal color codes (#RRGGBB) into RGB values (0–255) and CSS syntax.
When your brand guidelines or desktop design inspector list colors as Red, Green, and Blue values between 0 and 255, this converter translates them into standard 6-digit hexadecimal notation (#RRGGBB) for web, SVG, and UI design.
Enter Red, Green, and Blue integers between 0 and 255.
CSS RGB: rgb(30, 58, 138)
Each 0–255 integer channel is divided by 16 to find the high nibble and remainder (low nibble), then formatted as a two-character hexadecimal pair.
You want the HEX code for an alert crimson color with R=239, G=68, B=68.
Used when building cross-media brand palettes that document both RGB values for office/presentation software and HEX codes for digital products.
Standard 8-bit color channels allocate 8 binary bits (1 byte) per color channel, which provides 2⁸ = 256 possible intensity levels, numbered from 0 to 255.
No. #1E293B and #1e293b are identical in all browsers and design software, though uppercase is preferred in brand style guides for visual uniformity.
Whenever Red, Green, and Blue have the exact same value (such as R:128, G:128, B:128 → #808080), the resulting color is an achromatic neutral gray.
Convert 3-digit or 6-digit hexadecimal color codes (#RRGGBB) into RGB values (0–255) and CSS syntax.
Calculate estimated Cyan, Magenta, Yellow, and Key (Black) percentages and Total Ink Coverage from RGB.
Calculate WCAG 2.1 contrast ratio between foreground text and background colors for AA and AAA legibility.
Blend any two HEX colors and generate intermediate 10%, 25%, 50%, 75%, and 90% color swatches.
Explore related mathematical concepts, ISO standards, and prepress calculators.
Subtractive four-color process printing model using Cyan, Magenta, Yellow, and Key (Black) inks.
Six-digit hexadecimal representation of sRGB color channels used in CSS, SVG, and UI design.
Relative luminance ratio (1:1 to 21:1) governing accessible text legibility under WCAG 2.1 AA and AAA.
Additive digital light model combining Red, Green, and Blue channels from 0 to 255.