1. Harmonious Color Palette Generator

Pick a seed color or randomize across color-wheel harmonies. Click any HEX, RGB, or HSL token to copy immediately.

CSS Custom Properties Export (:root)

      

2. WCAG 2.1 AA / AAA Accessibility Contrast Checker

Calculate exact relative luminance ratios and verify compliance for Normal Text, Large Text, and UI Components.

Luminance: 0.93
Luminance: 0.02
Contrast Ratio
14.85 : 1
AAA Excellent
Normal Text AA Min 4.5 : 1 (< 18pt)
PASS
Normal Text AAA Min 7.0 : 1 (< 18pt)
PASS
Large Text AA Min 3.0 : 1 (≥ 18pt or 14pt bold)
PASS
Large Text AAA Min 4.5 : 1 (≥ 18pt or 14pt bold)
PASS
UI Components & Icons WCAG 1.4.11 Min 3.0 : 1
PASS
Auto-Fix Suggestion Meets all WCAG 2.1 levels
LIVE ACCESSIBILITY PREVIEW

Large Heading Text (24px Bold — 18pt Equivalent)

Normal body paragraph text at 16px regular weight. Good typography contrast ensures effortless reading across OLED mobile screens, low-brightness laptops, and high-glare environments for users with low vision or color deficiencies.

★ Status Outline Badge

3. Glassmorphism & Layered Box-Shadow CSS Studio

Fine-tune backdrop blur, frosted surface opacity, border sheen, and elevation shadow metrics with live preview.

16px
0.18
0.28
0px, 20px
38px, -6px
0.42
GLASSMORPHISM UI CSS3

Frosted Glass Surface

Real-time backdrop-filter blur layered over animated mesh orbs with customizable elevation shadow.

Generated Production CSS

          
Advertisement
728 × 90 Leaderboard Placement • Clearly Separated from Interactive Color Controls

How to Use PaletteMesh for UI Design & Accessibility

PaletteMesh is an all-in-one color engineering studio crafted for frontend developers, UI/UX designers, and accessibility auditors. Instead of switching between separate color wheels, contrast calculators, and CSS shadow generators, PaletteMesh unifies your workflow in a fast, 100% client-side workspace.

  1. Generate Harmonious Color Scales: Pick a primary brand color in the Harmonious Color Palette Generator or click Randomize. Switch between Analogous, Complementary, Triadic, Split-Complementary, and Monochromatic harmonies to derive 5 balanced swatches. Click any HEX, RGB, or HSL badge to copy its value, or copy the ready-to-paste :root CSS Custom Properties block.
  2. Audit WCAG 2.1 AA & AAA Contrast Ratios: Send your palette colors to the WCAG Contrast Checker or enter any foreground/background pair. PaletteMesh computes the exact relative luminance ratio (from 1.00 : 1 to 21.00 : 1) and grades compliance across Normal Text, Large Text, and Non-Text UI Components. If a pair fails, click Optimize Foreground to automatically compute the closest accessible shade.
  3. Craft Glassmorphism & Elevation Shadows: Use the interactive sliders in the Glassmorphism & Box-Shadow Studio to tune backdrop-filter: blur(), translucent RGBA surface fills, subtle 1px border highlights, and multi-axis shadow offsets.

Key Features & Privacy-First Architecture

Mathematical Color Harmonies

Built on precise HSL cylindrical coordinate transformations so saturation and perceived lightness remain balanced across every generated swatch.

W3C Relative Luminance Formula

Implements the exact W3C WCAG 2.1 gamma-corrected sRGB luminance equation for audit-ready accessibility verification.

One-Click Auto-Contrast Fixer

When a brand color misses the 4.5:1 AA threshold, our binary-search lightness solver finds the nearest compliant HEX code in milliseconds.

Zero Server Telemetry

Unreleased brand guidelines, design tokens, and proprietary UI palettes never leave your browser—100% local execution.

Technical Guide: Color Theory, WCAG 2.1 Math & Modern CSS

Building accessible, visually cohesive digital products requires both artistic color harmony and rigorous mathematical contrast verification. Use this reference guide when establishing design tokens for web and mobile applications.

1. Color Harmony Models Explained

Harmony Mode Hue Rotation Angle Best UI / Design System Use Case
Analogous -30°, -15°, 0°, +15°, +30° Calm, cohesive product interfaces, gradient meshes, and editorial layouts where adjacent hues blend naturally.
Complementary 0° & +180° (with tonal variations) High-impact call-to-action (CTA) buttons and interactive highlights that need to stand out against a dominant brand surface.
Triadic 0°, +120°, +240° Data visualizations, multi-series charts, and categorical status badges requiring distinct visual separation.
Split-Complementary 0°, +150°, +210° Offers strong visual contrast like a complementary scheme but with less harsh chromatic tension.
Monochromatic Fixed Hue (0°), stepped Lightness Foundational UI neutral scales, elevation surfaces, borders, and hover/active button states.

2. How WCAG 2.1 Contrast Ratio Is Calculated

The Web Content Accessibility Guidelines (WCAG 2.1 Success Criterion 1.4.3 and 1.4.6) define contrast ratio using the relative luminance ($L$) of the lighter color ($L_1$) and darker color ($L_2$):

Contrast Ratio = (L1 + 0.05) / (L2 + 0.05)

Where Relative Luminance L = 0.2126 * R_lin + 0.7152 * G_lin + 0.0722 * B_lin
And for each sRGB channel C in [0, 1]:
  C_lin = C / 12.92                        if C <= 0.03928
  C_lin = ((C + 0.055) / 1.055) ^ 2.4      if C >  0.03928
  • Level AA Minimum (4.5 : 1): Required for all standard body copy under 18pt (24px) or under 14pt bold (18.66px).
  • Level AAA Enhanced (7.0 : 1): Recommended for long-form reading, documentation portals, healthcare/financial apps, and enterprise dashboards.
  • Large Text & Non-Text UI (3.0 : 1): Applies to headings at least 24px (or 18.66px bold) as well as form input borders, focus rings, and interactive icons under WCAG 1.4.11.

3. Best Practices for Glassmorphism & Layered Box Shadows

When implementing frosted-glass UI cards with backdrop-filter: blur(), always include the -webkit-backdrop-filter prefix for Safari compatibility and pair the translucent background with a subtle semi-transparent border (e.g., 1px solid rgba(255, 255, 255, 0.25)) to simulate light catching the beveled edge of glass. Furthermore, test text readability against the busiest part of the underlying background to ensure WCAG contrast compliance is maintained even when dynamic elements scroll behind the glass layer.

Frequently Asked Questions (FAQ)

What is the difference between WCAG AA and WCAG AAA contrast compliance?

WCAG Level AA is the globally recognized legal benchmark (used by ADA, Section 508, and the European Accessibility Act) requiring at least a 4.5 : 1 contrast ratio for normal text and 3.0 : 1 for large text. Level AAA is the gold standard requiring 7.0 : 1 for normal text and 4.5 : 1 for large text, providing readability for users with moderately severe vision loss.

What qualifies as "Large Text" under WCAG 2.1 guidelines?

WCAG defines Large Text as at least 18pt (24px) at regular font weight, or at least 14pt (approximately 18.66px) when styled as bold (font-weight: 700 or higher).

Why should I use HSL in addition to HEX and RGB in CSS?

While HEX and RGB describe colors by red/green/blue light channels, HSL (Hue, Saturation, Lightness) aligns with how humans perceive color. Adjusting only the Lightness percentage in HSL makes it effortless to generate hover states, focus rings, and dark-mode surface variants without shifting the underlying hue.

Does backdrop-filter work in all modern browsers?

Yes, backdrop-filter: blur() is supported across Chrome, Edge, Firefox, and Safari. PaletteMesh automatically includes both the standard property and -webkit-backdrop-filter alongside a fallback background: rgba(...) rule.

Are the palettes and CSS snippets I generate free for commercial use?

Absolutely. All color palettes, HEX/RGB/HSL values, and CSS snippets generated on PaletteMesh are 100% royalty-free and unrestricted for personal, client, and commercial projects.