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.
Type any Emmet abbreviation and see the expanded HTML or CSS in real time. A playground for learning and perfecting your Emmet skills.
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 English text to Braille (Grade 1 and simple Grade 2 contractions). Educational tool to understand Braille representation. Local only.
Design a layout where nested grids share track sizes with their parent via subgrid. Copy the complete CSS.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Check the Accessible Perceptual Contrast Algorithm (APCA) ratio. The next‑generation contrast method for WCAG 3.
Limit browser gestures on an element: pan‑x, pinch‑zoom, manipulation. Draw on a canvas to test. Mobile dev helper.
Create complex linear gradients with any number of color stops, exact angles, and length units. Live preview and CSS code.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Generate a subtle noise/grain texture as a CSS background pattern. Adjust opacity and size. For that film look.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Upload two images and apply CSS blend modes (multiply, screen, overlay, etc.). See the result and copy the filter CSS. Pure frontend.