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.
Check read/write/execute boxes and see the octal and symbolic chmod representation. Learn and compute file permissions.
Paste a linear‑gradient CSS value and see all the color stops listed as a palette. Copy individual hex codes. Quick reference.
Upload a photo and extract a smooth CSS gradient that represents its color mood. Copy the linear-gradient code.
Place colored points on a canvas and see a smooth gradient mesh interpolate between them. Experimental and beautiful. Download PNG.
Take multiple evenly spaced screenshots from a video and combine them into a single filmstrip image. Local canvas.
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.
Pick a scale (Major, Harmonic Minor, Dorian…) and a root note. Shows the notes and highlights them on piano & guitar fretboard.
Preview how a CMYK value will look on screen (approximate). Compare with its RGB equivalent. Pre‑press check.
Calculate the exact number of days, weeks, months, and workdays between two dates. Visual calendar highlights. Perfect for projects.
Enter a hex color and hear a tone mapped to its hue. Explore the connection between color and sound. Fun perceptual experiment.
Choose your cup size and sweetness level, and get exact proportions for tea, milk, syrup, and tapioca pearls. Perfect homemade boba every time.
Enter temperature and wind speed (or humidity) to get the 'feels like' temperature. Safety guidelines included.
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.
Compute confidence intervals for a population mean (known/unknown sigma) and proportion. All popular Z/T values. Local.
Easily compute posterior probabilities given prior, likelihood, and marginal likelihood. Visual diagram. All local.
Enter a number to find its golden ratio long and short segments. Use for pleasing design layouts. Instant.
Calculate new dimensions while preserving aspect ratio, or find the ratio from width and height. For video and images.
Find out how large you can print based on image resolution in pixels. Understand DPI and megapixels.
Learn about f‑stops and their effect on light and depth. Calculate equivalent exposure adjustments. Educational.
Find the CAGR of an investment given start and end values over a time period. Instant growth rate.
Calculate your running pace per mile/km, finish time for a race, and split times. Essential for runners.
Measure your waist‑to‑hip ratio and learn about associated health risks. WHR interpretation. Educational only.
Mix two or more colors using subtractive (CMYK‑like) blending. See what happens when you combine real paints. Brush effect canvas.
Enter two sides of a right triangle and get the third. Also gives area and perimeter. Simple and visual.
Find the centroid (center of mass) of any convex polygon by entering vertex coordinates. Useful for physics and design.
Enter a chemical formula (e.g., H2O, C6H12O6) and calculate its molar mass. Handles parentheses and hydrates. Pure frontend.