>
HEX / RGB / HSL / CMYK Conversion with WCAG Contrast Check
RGB (Red, Green, Blue) represents a color as three numeric values ranging from 0 to 255, where each value controls the intensity of its respective color channel. When all three values are 0, the result is black; when all are 255, the result is white. HSL (Hue, Saturation, Lightness) represents the same color differently โ the hue is a degree on the color wheel (0 to 360), saturation is a percentage of color intensity (0% is gray, 100% is fully saturated), and lightness is a percentage of brightness (0% is black, 50% is the pure color, 100% is white). HSL is often more intuitive for humans because you can think in terms of "a bright red" or "a pale blue" rather than trying to guess RGB numbers. Both formats are widely supported in CSS and design tools, and this converter lets you switch between them instantly.
CMYK stands for Cyan, Magenta, Yellow, and Key (Black). It is a subtractive color model used primarily in print design, as opposed to the additive RGB model used for digital screens. In printing, ink absorbs light, so combining all four colors at full intensity produces a very dark color (ideally black, which is why a separate black ink โ the "Key" โ is added for efficiency). If you are designing something that will be physically printed โ business cards, brochures, packaging, posters โ you should use CMYK values to ensure the printed colors match your on-screen design as closely as possible. This converter calculates CMYK values from your RGB input so you can take screen designs straight to print production without needing separate software.
Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios to ensure text is readable for users with varying levels of visual ability, including color blindness and low vision. For normal-sized text, WCAG AA requires a contrast ratio of at least 4.5:1 against its background. For large text (18px or 14px bold and above), the minimum drops to 3:1. The AAA level is stricter, requiring 7:1 for normal text and 4.5:1 for large text. Our tool calculates these ratios automatically so you can verify your color combinations during the design phase rather than discovering accessibility issues after your site is already built. Meeting these standards is not only a best practice โ in many jurisdictions, it is a legal requirement under disability discrimination laws.