Generate color palette harmony schemes instantly. Create complementary, analogous, triadic, and split palettes with real-time WCAG contrast checks and CSS export.
Generate color palette harmony schemes instantly. Create complementary, analogous, triadic, and split palettes with real-time WCAG contrast checks and CSS export.
Angular position on the continuous 360-degree CIE/Munsell chromatic wheel determining primary spectral wavelength (0° Red, 60° Yellow, 120° Green, 180° Cyan, 240° Blue, 300° Magenta). Evaluated in O(1) trigonometric time as the origin coordinate for harmonic rotations within the sandboxed browser V8 runtime.
Geometric angular displacement establishing classical harmony topologies: Complementary (180°), Triadic (120° / 240°), Analogous (±30° / ±60°), Split-Complementary (150° / 210°), and Tetradic (60° / 180° / 240°). Calculated modulo 360° via pure mathematical rotation with zero external dependencies.
Perceptually uniform brightness scale from 0.0 (absolute absorption black) to 1.0 (pure diffuse white). Prevents yellow/blue perceptual lightness spikes inherent to raw HSL, ensuring colors with equal L values share identical human perceived brightness across all hues.
Radial distance from the achromatic neutral gray axis toward the spectral locus. High chroma (>0.20 in OKLCH, >80% in sRGB) induces eye fatigue and chromostereopsis; accessible UI surfaces require restrained chroma (<0.08) while interactive controls target 0.12–0.18.
Linearized photometric brightness calculated as Y = 0.2126R_lin + 0.7152G_lin + 0.0722B_lin per W3C WCAG 2.1 §1.4.3. Dictates contrast ratio (L1 + 0.05) / (L2 + 0.05), mandating ≥4.5:1 for standard text (AA) and ≥7.0:1 for enhanced legibility (AAA).
Client-side matrix transformation pipeline executing 3x3 matrix convolutions: gamma expansion [0, 255] ➔ linear sRGB ➔ CIE XYZ (D65 illuminant) ➔ LMS cone space ➔ OKLCH polar coordinates. Executes in deterministic O(1) time complexity within the browser execution isolate without server telemetry.
Standard HSL math treats 100% saturated yellow (L=50%) and 100% saturated blue (L=50%) as equal lightness, but human photopic eye response perceives yellow as dramatically brighter. Always switch to OKLCH perceptual color space when balancing text readability against background swatches; identical L values in OKLCH guarantee uniform perceived brightness across all 360 degrees of hue.
Placing high-saturation complementary colors (e.g., pure red #FF0000 and pure cyan #00FFFF) directly adjacent triggers physiological lateral inhibition, conflicting accommodation, and eye strain. Insert a neutral bridge (a tint with Chroma < 0.02 or a dark surface with L < 0.20, ensuring a luminance difference ΔY ≥ 0.30) between saturated complementary pairs.
Never allocate harmonic palette colors in equal proportions. Apply 60% of canvas area to the dominant neutral/surface color, 30% to the secondary structural brand hue, and reserve the remaining 10% strictly for the accent/complementary action color (buttons, badges, active states).
Approximately 8% of men and 0.5% of women have Deuteranopia or Protanopia. Complementary red-green palettes collapse into indistinguishable brownish-yellow hues under dichromatic vision. Always ensure a minimum 3.0:1 luminance difference between critical status states, not color hue alone, and reinforce with typography or icons per WCAG 2.1 SC 1.4.1.
Standard Math.random() relies on pseudo-random PRNG engines susceptible to state recovery and modulo clumping around popular hue quadrants. For unbiased exploratory palette generation, harvest hardware entropy via the Web Crypto API using window.crypto.getRandomValues(new Uint32Array(1)) / 4294967296 * 360, guaranteeing uniform distribution across the entire 360° CIE spectrum.
Complementary hues share chromatic tension, not luminance compatibility. Adjust the perceptual lightness (L*) slider of the foreground accent hue down to ≤0.35 for white backgrounds, or up to ≥0.75 for dark charcoal backgrounds to achieve the mandatory 4.5:1 ratio.
Linear RGB interpolation cuts through the desaturated core of the color cylinder. Switch the generator's calculation space from sRGB/HSL to OKLCH; this curves interpolation through constant perceived chroma and eliminates gray dead-zones.
High-chroma synthetic RGB values (such as neon cyans and greens) fall outside the sRGB triangle or CMYK print gamut. Use the Gamut Clipping Armor toggle to clamp values to standard sRGB [0, 255] or preview the corresponding Display P3 wide-gamut CSS color(display-p3 r g b) tokens.
Equal saturation across 3 or 4 disparate hues causes competing focal points. Keep only one dominant hue at high saturation (>70%) and deliberately desaturate the remaining secondary and tertiary harmonies to 20-35% chroma to function as supporting tones.
Color harmonies are calculated by converting sRGB values into polar coordinates (Hue θ from 0° to 360°, Saturation, Lightness). Complementary harmony adds 180° (θ + 180° mod 360°). Triadic harmony rotates by 120° increments (θ + 120°, θ + 240°). Analogous harmony calculates adjacent hues at ±30° and ±60° (θ ± 30° mod 360°). Split-complementary takes the base hue θ and pairs it with two angles adjacent to its direct complement: θ + 150° and θ + 210°. All transformations execute in O(1) computational time.
Under WCAG 2.1 Level AA, standard body text and button labels below 18pt regular (or below 14pt bold) require a minimum contrast ratio of 4.5:1 against their background. Large text (≥18pt regular or ≥14pt bold) and essential graphical UI components (such as button borders, form field outlines, and active tab indicators) require a minimum contrast ratio of 3.0:1. Level AAA elevates standard text requirements to 7.0:1 and large text to 4.5:1.
HSL (Hue, Saturation, Lightness) is a simple cylindrical transform of raw sRGB that ignores human retinal sensitivity, causing yellow (50% lightness) to appear far brighter than blue (50% lightness). OKLCH is based on CIECAM02 and CAM16 perceptual color models developed by Björn Ottosson; it separates perceived lightness (L), chroma (C), and hue (h) uniformly, ensuring two colors with identical L values have identical perceived brightness across all 360 degrees of hue.
Visual vibration (chromostereopsis) occurs when high-saturation complementary colors with identical luminance trigger opposing signals in adjacent retinal cones without sufficient luminance contrast, causing the optical edge to fluctuate. Muddiness occurs during linear RGB alpha-blending because intermediate values drop in perceived chroma toward the dark center of the RGB cube. Remedying this requires adding a luminance delta (ΔL ≥ 0.3) or a neutral divider line.
No; all mathematical color space conversions (sRGB, CIE XYZ, OKLCH, Display-P3), WCAG contrast formulas, and CVD simulations execute 100% client-side inside your browser's sandboxed JavaScript V8 virtual machine. No hex codes, color values, or uploaded brand assets are ever transmitted across a network, guaranteeing zero server telemetry, complete offline functionality, and total data isolation conforming to enterprise security standards.
Generate modern CSS glassmorphism & frosted glass UI code with live backdrop-filter blur, opacity, border, and shadow controls. Copy clean HTML and CSS instantly.
Compress images online without quality loss. Reduce JPG, PNG, and WebP file sizes in browser with zero server uploads, target KB solver, and batch ZIP export.
Visual CSS gradient creator with multi-color colorstops, angle controls, radial shapes, preset palettes, and one-click CSS export.
Design natural, ultra-realistic multi-layered CSS box shadows with optical elevation, inset bevels, blur dispersion, and instant Tailwind, CSS, and React export.
Create responsive geometric clip-path coordinates and SVG clipping masks with visual draggable vertices and real-time CSS output.
Visual 2D CSS Grid builder. Create responsive grid layouts, configure fractional units (fr), minmax bounds, gaps, and export clean CSS, Tailwind, or React JSX.