HEX to RGB Converter
Convert 3-digit or 6-digit hexadecimal color codes (#RRGGBB) into RGB values (0–255) and CSS syntax.
Whether you are generating a stepped tint scale (mixing a brand color with #FFFFFF white), creating subtle shadow shades (mixing with #0F172A slate), or finding the exact 25%, 50%, and 75% midpoints between two brand colors, this tool blends any two HEX inputs and renders interactive swatches.
Calculate intermediate 25%, 50%, and 75% blended swatches.
25% Mix: #19415E · 50% Mix: #246A91 · 75% Mix: #2E94C5
For any blend weight t between 0.0 (0% Color B) and 1.0 (100% Color B), each Red, Green, and Blue channel is interpolated proportionally between Color A and Color B.
You want lighter tint steps of #1E3A8A (R:30, G:58, B:138) blended toward #FFFFFF (R:255, G:255, B:255).
Used when building cohesive chart palettes, table row zebra tints, border colors, and intermediate brand gradients.
Enter your base color as Color A and pure white (#FFFFFF) as Color B. The 25%, 50%, and 75% mix outputs will give you the exact 75% tint, 50% tint, and 25% tint swatches.
The 50% mix averages the Red, Green, and Blue channels of both colors: (R1 + R2) ÷ 2, (G1 + G2) ÷ 2, and (B1 + B2) ÷ 2.
Yes. Every blended swatch displays both its 6-digit HEX code and its rgb(R, G, B) values with one-click copying.
Convert 3-digit or 6-digit hexadecimal color codes (#RRGGBB) into RGB values (0–255) and CSS syntax.
Convert Red, Green, and Blue (0–255) color channel values into a 6-digit hexadecimal color code.
Calculate WCAG 2.1 contrast ratio between foreground text and background colors for AA and AAA legibility.
Calculate estimated Cyan, Magenta, Yellow, and Key (Black) percentages and Total Ink Coverage from RGB.
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.