Color Readability Tester - Online Visual Contrast Meter
Paste body text and test different font/background combos. See an actual passage rendered, not just a ratio. True feel for legibility.
UD5 Toolkit
Automatically determine the optimal text color (white or black) for any background, following WCAG contrast standards. Preview how CSS contrast-color() works in real time.
contrast-color(<background-color>) or contrast-color(<bg> vs <color1>, <color2>) for custom candidates.
vs keyword when you need brand-specific colors. However, for pure readability, the white/black dichotomy is remarkably effective — our tool demonstrates exactly how this decision is made by computing both ratios side by side.
function contrastColor(bgHex) {
const white = {r:255,g:255,b:255};
const black = {r:0,g:0,b:0};
const bg = hexToRgb(bgHex);
const whiteContrast = getContrastRatio(white, bg);
const blackContrast = getContrastRatio(black, bg);
return whiteContrast > blackContrast ? '#FFFFFF' : '#000000';
}
This mirrors exactly what our tool calculates in real time. Use the luminance and contrast formulas from WCAG 2.x for production implementations.
Paste body text and test different font/background combos. See an actual passage rendered, not just a ratio. True feel for legibility.
Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
Grid of all 148 named CSS colors. Hover to see detail, click to copy the name or hex. Essential frontend reference.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Paste hex colors, generate a contrast matrix against each other. Identify failing pairs for WCAG.
Use the light‑dark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.
Set a custom accent color for checkboxes, radios, range, and progress. See the browser’s rendering. Copy the CSS.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Interactively create colors in HWB space and get the CSS hwb() function. Simplifies tint/shade workflows. Live preview.
Enter a palette of colors and see a grid showing whether each foreground/background pair passes AA or AAA contrast. Must for designers.
Enter a color palette and see how it looks for different types of color vision deficiency. Get warnings on conflicting colors.
List up to 10 colors and generate a contrast ratio matrix. See which pairs pass WCAG quickly.
Test if your display supports HDR colors by rendering a gradient in Rec.2020 space. See what you're missing. Canvas based.
Enter color in any CSS format and see all other representations. Live preview. Swatch history.
Paste a stylesheet and extract every unique color (hex, rgb, hsl) into a palette. Swatches displayed. Copy as JSON.
Pick a color in the Display‑P3 space and get the CSS color() function. See the difference from sRGB. For modern design.
Convert RGB and RGBA color values to their HEX or HEX+alpha representation. Live preview and copy CSS color strings instantly.
Generate a range of tints and shades from a single hex color. Ideal for data visualization, UI design systems, and Tailwind custom palette creation. Local tool.
Pick colors using the HWB (Hue‑Whiteness‑Blackness) model. Get the CSS hwb() function code. Simpler than HSL for some.
Select emotions (calm, energetic, sad) and generate a harmonious color palette that reflects the mood.
Discover beautiful color palettes for your projects. Generate random, complementary, or trendy schemes and copy hex codes. Useful for designers and developers.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Paste a list of hex colors and see a grid showing the contrast ratio for every combination. Instantly identifies which pairs pass WCAG AA/AAA.
Generate single random colors or full palettes. Displays hex, RGB, and copy on click. Great for design inspiration.
Pick colors from a palette or use the eye dropper to sample colors from your screen. Converts between HEX, RGB, HSL. An essential tool for designers.
See the Pantone Colors of the Year and popular palettes from past years. Get hex codes. Design inspiration.
Use <input type='color'> and see its change events and value in hex. Understand the native color picker. Quick demo.
Style the <progress> and <meter> elements with cross‑browser CSS. Adjust colors and sizes. Copy the final styles.
Build a palette and simulate how it appears to various color deficiencies. Also generate pre-vetted accessible palettes. Local processing.