Palettes • Tint/Shade Scales • WCAG 2.1 • 2D Mesh CSS

Color & Mesh Gradient Lab

Generate harmonious palettes with the Spacebar, extract 50–900 tint and shade scales, verify WCAG 2.1 contrast compliance, and drag 4–6 color nodes on a 2D canvas to craft fluid CSS mesh gradients.

Hit Spacebar to randomize palette. Click any swatch to copy HEX & extract its 50–900 Shade/Tint scale below.
Copy
#4F46E5
Click to copy & inspect
Copy
#7C3AED
Click to copy & inspect
Copy
#EC4899
Click to copy & inspect
Copy
#F59E0B
Click to copy & inspect
Copy
#10B981
Click to copy & inspect

Shade & Tint Scale Extractor (50–900)

#4F46E5
Tools AdSense Unit • Slot 8242419619Consent Mode V2: Restricted

Color Systems, Shade Extraction, WCAG Luminance & Multi-Point Mesh Gradients

Building a production-grade design system requires far more than picking five isolated accent colors. Every primary or semantic brand color must expand into a predictable tint and shade ramp (typically numbered 50 through 900) so UI engineers have subtle elevated backgrounds, crisp borders, hover states, and high-contrast text tokens. By interpolating a base 500 swatch mathematically toward pure white (tints) and pure black (shades), our Color Lab extracts a complete 10-step scale ready for one-click HEX copying.

Once your color tokens are selected, verifying legibility through WCAG 2.1 contrast checking is essential for inclusive UX. Because human photoreceptors are significantly more sensitive to green light than to blue or red, two colors with identical HSL lightness values can exhibit vastly different perceived brightness. The W3C relative luminance formula linearizes sRGB channel values and weights them (`0.2126 R + 0.7152 G + 0.0722 B`) to compute an objective contrast ratio between 1:1 and 21:1—requiring at least 4.5:1 for normal body copy (Level AA) and 7.0:1 for enhanced Level AAA readability.

For modern hero backgrounds and interactive cards, flat single-axis linear gradients often look rigid and mechanical. CSS Mesh Gradients overcome this limitation by plotting 4 to 6 independent color control nodes across a two-dimensional coordinate plane (`X%`, `Y%`). Each node radiates a soft radial falloff (radial-gradient(at X% Y%, COLOR 0px, transparent 55%)) that blends additively over a deep base canvas color.

Because these multi-point mesh gradients are expressed purely as declarative CSS background layers, they render at native retina resolution on the client GPU with zero external image requests, zero layout shift, and instant copy-to-clipboard portability.

Frequently Asked Questions

How does the 2D Mesh Gradient Generator create fluid multi-color CSS?
By plotting 4 to 6 control points (X%, Y%) across the 2D surface and layering multiple radial-gradient(at X% Y%, COLOR 0px, transparent 55%) declarations over a base surface color, the browser's GPU composites smooth, organic color fields without heavy image files.
How are the 50–900 Shade and Tint scales calculated?
Clicking any swatch in the 5-color strip (or picking a custom HEX code) interpolates lighter tints (steps 50–400) toward pure white and darker shades (steps 600–900) toward pure black around your 500 base color—ready to copy directly into Tailwind CSS or design tokens.
What contrast ratio does WCAG 2.1 require for accessible web text?
Under Web Content Accessibility Guidelines (WCAG 2.1), normal body text requires a minimum relative luminance contrast ratio of 4.5:1 for Level AA compliance (and 7.0:1 for Level AAA), while large headings (18pt+ or 14pt bold) require at least 3.0:1.
Above Footer AdSense Unit • Slot 4655885639Consent Mode V2: Restricted