HEX to RGB Converter
Convert 3-digit or 6-digit hexadecimal color codes (#RRGGBB) into RGB values (0–255) and CSS syntax.
Low-contrast typography—like light gray text on a pastel background or white text over bright yellow—is hard to read on screen and even harder to read on printed paper under dim indoor lighting. Enter any foreground and background HEX colors to compute the exact relative luminance contrast ratio and WCAG AA/AAA ratings for normal and large text.
Check WCAG 2.1 luminance contrast ratio for editorial print and digital legibility.
Normal body text specimen (9–11pt print / 16px screen). High luminance contrast ensures comfortable reading across coated and uncoated paper stocks as well as digital displays.
Where Relative Luminance L = 0.2126 × R_lin + 0.7152 × G_lin + 0.0722 × B_lin after gamma expansion. Pure black on pure white yields the maximum 21 : 1 contrast ratio.
You want to verify that dark slate body copy (#334155) on an off-white background (#FAFAFA) exceeds AAA contrast.
Used when choosing typography colors for brochures, packaging nutrition panels, wayfinding signage, Accessible PDF documents, and web interfaces.
WCAG Level AA requires a minimum contrast ratio of 4.5 : 1 for normal text and 3.0 : 1 for large text (18 pt+ or 14 pt+ bold). Level AAA—recommended for long-form editorial reading and small print—requires 7.0 : 1 for normal text and 4.5 : 1 for large text.
Yes. Public-sector brochures, healthcare leaflets, pharmaceutical packaging, transit signage, and PDF/UA accessible documents all rely on luminance contrast thresholds so readers with low vision or presbyopia can read comfortably.
Large text is defined as 18 pt (24 px) and larger for regular weight, or 14 pt (approx. 18.66 px) and larger for bold weight (700+).
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.
Blend any two HEX colors and generate intermediate 10%, 25%, 50%, 75%, and 90% color swatches.
Convert typography measurements between points (pt), pixels (px), millimeters (mm), inches, picas, and rem.
Explore related mathematical concepts, ISO standards, and prepress calculators.
Relative luminance ratio (1:1 to 21:1) governing accessible text legibility under WCAG 2.1 AA and AAA.
Six-digit hexadecimal representation of sRGB color channels used in CSS, SVG, and UI design.
Desktop publishing PostScript point equal to exactly 1/72 of an international inch (0.3528 mm).
Subtractive four-color process printing model using Cyan, Magenta, Yellow, and Key (Black) inks.
Additive digital light model combining Red, Green, and Blue channels from 0 to 255.