Text Contrast Validator - Online WCAG AAA Checker
Enter a text color and background color and instantly see if the combination passes WCAG AA and AAA ratio. Safe colors.
UD5 Toolkit
Calculate the perceived brightness of a color using the standard luminance formula. Ideal for accessibility and design decisions.
Preset Colors:
Light Text
White on this color
Contrast ratio: --
Dark Text
Black on this color
Contrast ratio: --
The perceived brightness (luminance) of a color is calculated using the standard relative luminance formula from WCAG 2.0, which accounts for human eye sensitivity to different colors:
Y = 0.2126 * R + 0.7152 * G + 0.0722 * B
Where R, G, B are the linearized sRGB values (0–1) after applying gamma expansion. This formula gives a value from 0 (black) to 1 (white), indicating how bright the color appears to the average human eye.
For accessibility, WCAG recommends a contrast ratio of at least 4.5:1 for normal text. Our tool also calculates the contrast ratio against white and black based on this luminance value.
Y = 0.2126 * R + 0.7152 * G + 0.0722 * B. This is the basis for calculating contrast ratios for web accessibility.
Enter a text color and background color and instantly see if the combination passes WCAG AA and AAA ratio. Safe colors.
Enter original and target color to compute the exact CSS hue‑rotate(deg) filter needed. For precise icon and image tinting.
Enter an HTML snippet and see a rough transcription of what a screen reader might announce. Check alt texts.
Pick a base color and generate a 10‑step scale where each step meets a specific contrast ratio against white or black. Export as CSS custom properties.
Paste a set of hex colors and simulate how they appear with common color vision deficiencies. Get contrast warnings.
Paste an HTML snippet and check for common ARIA mistakes: missing labels, invalid roles, and aria‑hidden misuse. Educate your team.
Automatically restore natural colors to a photo by removing color casts. Gray world algorithm. One‑click fix. Canvas.
Paste an SVG and check if the graphic‑aria roles are used correctly. Improve accessible diagrams and icons.
Create a 5‑star rating widget using only HTML and CSS. Customize colors and size. Copy the clean code.
Shift the color temperature of your photo towards warm (orange) or cool (blue). Instant canvas filter. Download result.
Flip a coin with adjustable bias (e.g., 70% heads). Used for random decision-making when you want to gently influence outcomes. History & stats shown.
Build a simple decision tree by adding yes/no nodes. Flowchart style. Export as text outline.
Build a 3D card flip effect and toggle backface‑visibility. See the hidden back face. Copy the complete CSS.
Paste HTML snippet and highlight interactive elements missing accessible labels. Quick a11y audit.
Paste JavaScript and catch syntax errors instantly with line numbers. Lightweight pre‑commit check. Local.
Search common dream symbols and their traditional meanings. For entertainment and self-reflection. Static data.
Paste your manifest.json and instantly validate it against the W3C spec. Catch errors and warnings. Client‑side.
Create a fully accessible form by adding fields; the tool generates the proper labels, inputs, and ARIA attributes. Copy the clean HTML.
See how a PWA can extend content into the title bar area on desktop. Customize the window controls overlay.
Interactive visual guide to figure out if a door is left-handed or right-handed. Click through steps. Avoid ordering the wrong door.
Paste a string of weather emojis and get a written weather forecast. Fun and educational emoji tool.
Convert plain text into HTML‑safe strings by escaping <, >, &, and quotes. Insert into code safely. Local copy.
Enter any number up to trillion and get the English word representation. For filling out checks or legal documents.
Convert plain text lines into HTML ordered or unordered lists. Instantly copy the generated HTML to paste into your website. No hassle, fully browser-based.
Convert .srt subtitles to .vtt format for web video players. Preserves all timestamps and formatting. Local.
Paste a WebVTT file and instantly check for syntax errors. Validate timestamps and cue formatting. Essential for video devs.
Set your birth date and see a live countdown with days, hours, minutes, and seconds. Shareable link. Pure frontend.
View the moon phase for any date in past or future. See full moon dates and eclipses for a given year.
Reverse any short video clip and download the backward version. Fun for creative effects. Browser‑based.
Validate a language tag like en‑US or zh‑Hans against the IANA registry. Ensure correct HTML lang attribute.