Check color contrast ratios for WCAG compliance.
The Color Contrast Checker calculates the contrast ratio between a foreground and background color and tells you whether it passes WCAG AA and AAA accessibility standards for normal and large text. Enter or pick two colors and get an instant pass/fail readout — essential for making sure text stays readable for users with low vision.
Made for developers. Typical uses:
Explore more in Developer Tools, read the guides and articles, or see how we test our tools.
Validate hex color codes for correct format and validity.
Best for checking a hex code copied from a design tool or brand guide before pasting it into CSS
Convert colors between HEX, RGB, HSL, CMYK, and more formats.
Best for converting a HEX color from a design file into RGB for code or a library
Generate random hex color codes for your design projects.
Best for finding a starting accent color for a design mockup
Generate random RGB color values for your design projects.
Best for exploring random color combinations for a UI or branding mockup
Create beautiful CSS gradients with live preview.
Best for creating website backgrounds and buttons