System Colors Cheatsheet - Online All CSS System Colors
View all CSS system colors (Canvas, ButtonFace, GrayText) as swatches. Click to copy. For forced‑colors adaptation.
UD5 Toolkit
Large Sample Text (24px)
Normal sample text (16px) for readability testing. The quick brown fox jumps over the lazy dog.
Small text (12px) - typically not recommended for body copy.
Relative luminance is a measure of how bright a color appears to the human eye, defined by the W3C Web Content Accessibility Guidelines (WCAG). It ranges from 0 (pure black) to 1 (pure white). Unlike simple brightness, relative luminance accounts for the fact that the human eye perceives green light as brighter than red or blue light. The formula uses weighted coefficients: 0.2126 Ă— R + 0.7152 Ă— G + 0.0722 Ă— B, where R, G, and B are linearized sRGB values.
The contrast ratio between two colors is calculated using the formula: (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 is the relative luminance of the darker color. The result ranges from 1:1 (identical colors) to 21:1 (pure black vs pure white). The +0.05 offset prevents division by zero and accounts for ambient light scattering in real-world viewing conditions.
AAA is the highest accessibility standard. Most projects aim for at least AA compliance for all essential content.
This is based on the CIE 1931 photopic luminosity function, which models human visual perception. The human eye has approximately 60% green-sensitive cones, 30% red-sensitive cones, and only 10% blue-sensitive cones. This is why a pure green (#00FF00) has a relative luminance of ~0.7152, while pure blue (#0000FF) has only ~0.0722 — green appears much brighter to us than blue at the same intensity.
Colors in digital displays use gamma-compressed sRGB values (0-255 per channel). To calculate true luminance, each channel must be linearized. For 8-bit sRGB values scaled to 0-1: if the value ≤ 0.04045, divide by 12.92; otherwise, apply ((value + 0.055) / 1.055)2.4. This linearization removes the gamma encoding used by displays, giving physically accurate luminance values for the WCAG formula.
If your contrast ratio is too low, try these strategies:
Yes. WCAG 2.1 requires a 3:1 minimum contrast ratio for UI components (buttons, form borders, icons) and graphical objects that are essential for understanding content. This ensures that users with low vision can distinguish interactive elements. Our tool can help you verify contrast for any two colors used in your interface.
Relative luminance is a standardized, objective measurement defined by WCAG for accessibility compliance. Perceived brightness is subjective and varies between individuals and viewing conditions. Two colors might appear equally bright to one person but measurably different in luminance. For compliance, always use the mathematical WCAG formula rather than subjective judgment. That said, relative luminance is designed to approximate human visual perception as closely as possible.
View all CSS system colors (Canvas, ButtonFace, GrayText) as swatches. Click to copy. For forced‑colors adaptation.
Paste a linear‑gradient CSS value and see all the color stops listed as a palette. Copy individual hex codes. Quick reference.
Apply real-time CSS filters or canvas effects to a video and download the processed output. Experiment with video post-processing locally.
Place colored points on a canvas and see a smooth gradient mesh interpolate between them. Experimental and beautiful. Download PNG.
An interactive reference for regular expression tokens. Click a token to see its explanation and example. Learn regex faster.
Check read/write/execute boxes and see the octal and symbolic chmod representation. Learn and compute file permissions.
Upload a photo and extract a smooth CSS gradient that represents its color mood. Copy the linear-gradient code.
Searchable table of well‑known TCP and UDP ports with their services. Check 80, 443, 3306, and many more.
Check and beautify your TOML config files. Highlights errors and aligns tables and arrays. Safe local parsing.
Paste your full CSS and HTML; automatically identify and extract the styles needed for the visible part. Reduce render‑blocking resources.
Paste your CSS and strip all `!important` declarations in one click. See a list of affected rules. Local tool.
Upload a simple shape image and automatically trace its outline to a CSS clip‑path polygon. For creative web design. Local.
Paste a Quartz cron expression (with seconds field) and translate it to standard Unix cron. For devops migrations.
Take multiple evenly spaced screenshots from a video and combine them into a single filmstrip image. Local canvas.
Enter water temperature and activity to get recommended wetsuit thickness (2/3mm to 6/5mm). Stay comfortable.
Pick a scale (Major, Harmonic Minor, Dorian…) and a root note. Shows the notes and highlights them on piano & guitar fretboard.
Set up multiple @layers and use revert‑layer to fall back. See the computed style and cascade resolution live.
Select a meat or vegetable to see the best wood pairing for smoking. Flavor descriptions and intensity chart.
Enter two city names or coordinates and get the straight‑line distance in miles/km. Local calculation.
Calculate ideal stereo speaker placement (toe-in, distance from wall) for best soundstage. Visual diagram. For audiophiles. Local tool.
Find the optimal TV size for your room or the best viewing distance based on screen size and resolution (1080p, 4K, 8K). Simple THX/SMPTE reference.
Estimate BAC based on gender, weight, drinks consumed, and time. Uses Widmark formula. Educational tool, never encourage drunk driving. Local only.
See a random color and type its name. Score based on accuracy. Fun for designers. Local.
Convert hex or RGB to CIELAB L*a*b* values. Understand perceptual lightness and color opponents. Local math.
Find out what day number of the year any date is (1‑366). Also shows days remaining. Simple reference.
Convert any image into colored ASCII art using divs with background colors. Creates a stunning text‑based replica. View & copy HTML.
Calculate the exact number of days, weeks, months, and workdays between two dates. Visual calendar highlights. Perfect for projects.
Combine multiple identical batteries in series and parallel and see the resulting voltage and total capacity. Electronics helper.
Track your subscriptions, calculate monthly and yearly totals, and find savings by pausing unused services. Local data.
Determine the minimum sample size needed for a survey or A/B test with a given confidence level and margin of error.