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.
Grid of all 148 named CSS colors. Hover to see detail, click to copy the name or hex. Essential frontend reference.
Set a custom accent color for checkboxes, radios, range, and progress. See the browser’s rendering. Copy the CSS.
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.
Use the light‑dark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.
Enter a palette of colors and see a grid showing whether each foreground/background pair passes AA or AAA contrast. Must for designers.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Preview how a CMYK value will look on screen (approximate). Compare with its RGB equivalent. Pre‑press check.
Test if your display supports HDR colors by rendering a gradient in Rec.2020 space. See what you're missing. Canvas based.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Pick a color in the Display‑P3 space and get the CSS color() function. See the difference from sRGB. For modern design.
Type a word like 'sunset' or 'calm' and generate a color palette inspired by that mood. Simple associative mapping.
Convert RGB and RGBA color values to their HEX or HEX+alpha representation. Live preview and copy CSS color strings instantly.
Paste a stylesheet and extract every unique color (hex, rgb, hsl) into a palette. Swatches displayed. Copy as JSON.
Classic HSV color wheel with sliders. See hex, RGB, and HSL equivalents. Intuitive for artists. No server interaction.
Use <input type='color'> and see its change events and value in hex. Understand the native color picker. Quick demo.
Quickly convert HEX color codes to RGB values and vice versa. See the color preview. Indispensable for web developers and graphic designers.
Paste a list of hex colors and generate CSS custom properties for them. Create your design token file instantly.
See the Pantone Colors of the Year and popular palettes from past years. Get hex codes. Design inspiration.
Upload an image and see the cyan, magenta, yellow, and black plates as separate grayscale images. Pre‑press tool.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Find the official name of any hex color from the extended color dictionary. Search by name to get the hex code. Handy for CSS and design language.
Generate single random colors or full palettes. Displays hex, RGB, and copy on click. Great for design inspiration.
Convert screen RGB colors to print-ready CMYK values. Understand color shifts before printing. Ideal for graphic designers preparing artwork for press.
Enter a Kelvin value (1000‑40000) and see the approximate white‑balance color. Photography and lighting reference.
Design a light and dark theme by picking colors for backgrounds, text, and links. Get the CSS for both themes. Local.
Upload an image and instantly get a 6‑color palette with the most dominant shades. Click to copy hex codes. Canvas‑based.
Input RGB values and see the HSL equivalent with a color preview. Understand lightness and saturation. Local.
Adjust the color temperature of your image: move slider to make it warmer or cooler. Quick white balance fix. Local canvas.
Pick a base color and generate a full palette of 10 shades (50 to 900) like Tailwind CSS. Copy as hex or hsl.