Manual Input
Format: #hex position% (position optional). Need at least 2 stops.
Gradient Type
Collection (0 gradients)
Browse the 512 gradient collection. Keyboard / prev/next, R random.
Quick Actions
Keyboard Shortcuts
F fullscreen  |  R random gradient  |  ←/→ prev/next  |  C copy CSS
Gradient Identity

Full Preview
Gradient Strip with Stop Markers
CSS Output
Stop Breakdown — Hex · HSL · Lab · OKLab · LCH · Luminance · Gamut

Load a gradient to see stop analysis.

Luminance Readouts (Relative Luminance Y)
Start (t=0)
Mid (t=0.5)
End (t=1)
Mean (32-pt)
Range
Contrast Analysis (Midpoint)
vs White (WCAG)
vs Black (WCAG)
vs White (APCA)
vs Black (APCA)
WCAG AA (4.5:1)
WCAG AAA (7:1)
AA Large (3:1)
Ends CR
ΔE Colour Difference (First → Last Stop)
ΔE*76
ΔE₀₀
ΔEOK×100
Max Step ΔE₀₀
Luminance Profile (Y over t)
Gold curve = relative luminance Y across gradient position t (0→1). Stop markers show exact Y at each colour stop.
ΔE₀₀ Step Profile
Bar chart of CIEDE2000 between adjacent sample pairs. Green = low, red = high difference.
CIE 1931 Chromaticity Diagram
Spectral locus (white) | sRGB triangle (gold dashed) | D65 white point | Red path = gradient colour trace | Filled circles = stop markers.
Gamut Coverage Analysis
Hue Wheel — Polar HSL Plot
Outer ring = hue wheel. Red path shows gradient's hue/saturation trajectory. Stops shown as filled circles.
CIE Lab a*b* Scatter Plot
Centre = neutral (a*=0, b*=0). Path shows chromaticity trajectory through Lab space.
Perceptual Uniformity (Step ΔE₀₀ Consistency)
Mean Step ΔE₀₀
Std Dev
CV
Min Step
Max Step
Verdict
CV (Coefficient of Variation) <0.3 = uniform, 0.3-0.6 = moderate, >0.6 = non-uniform. Red bars = outliers (>1.5σ from mean).
Hue Continuity Analysis
Mean Hue Jump
Max Hue Jump
Continuous
Lightness Monotonicity
Direction
Score
Verdict
Stop-Pair Comparison Matrix — ΔE · WCAG · APCA

Load a gradient to see pair analysis.

Export Gradient
PNG renders gradient at 1200×300px. SVG uses linearGradient element. JSON includes full analysis data (uniformity, hue continuity, monotonicity, stop pairs). CSV exports all stop colour-space data. Share URL encodes gradient as URL parameter.
Available Per-Gradient Actions

Copy CSS: All three CSS gradient syntaxes (linear, radial, conic) with position percentages.

Download PNG: 1200×300 pixel-accurate rasterisation with sRGB sampling.

Download SVG: Scalable linearGradient element with precise stop offsets.

Export JSON: Full analysis report including uniformity metrics, hue continuity, monotonicity score, and stop-pair comparison matrix (ΔE76, ΔE00, ΔEOK, WCAG, APCA for every pair).

Export CSV: Per-stop tabular data: Hex, Position, HSL, Lab, LCH, Luminance, sRGB/P3/Rec.2020 gamut status.

Share URL: Shareable link encoding the gradient as a URL parameter.

Fullscreen: Full-viewport preview (F).

Integration with Gradient Library

This page is designed as the detail view for the Gradient Library (gradient-list). When you click "Inspect" or "Open Detail" on any gradient card in the library, it opens this page with the full gradient data encoded in the URL. You can also link back to the library from the Lab tab controls.

← Back to Gradient Library
Colour Science Standards for Gradient Analysis
CSS Gradient Specification

CSS Images Module Level 3 (W3C): Defines linear-gradient(), radial-gradient(), and repeating variants. Interpolation is in the sRGB colour space with premultiplied alpha.

CSS Images Module Level 4: Adds conic-gradient() and colour interpolation hints. The color-interpolation-method property enables interpolation in OKLab, Lab, and other perceptually uniform spaces.

CSS Color Level 4: Extends colour functions to support lab(), lch(), oklab(), oklch(), displayP3, and rec2020 colour spaces.

CIEDE2000 Colour Difference (CIE 142-2001)

CIEDE2000 (ΔE₀₀) is the current CIE-recommended colour-difference formula. It corrects the perceptual non-uniformity of CIE76 with weighting functions for lightness, chroma, and hue, plus a rotation term for the blue region.

Guideline ranges: ΔE₀₀ <1 imperceptible, 1–2 perceptible by trained observers, 2–5 clearly visible, 5–10 large, >10 very large.

Reference: Sharma, Wu, & Dalal (2005). "The CIEDE2000 color-difference formula." Color Res. App., 30(1), 21–30.

WCAG 2.2 Contrast Requirements

Success Criterion 1.4.3 (AA): Normal text requires at least 4.5:1 contrast ratio. Large text (≥18pt or bold ≥14pt) requires 3:1.

Success Criterion 1.4.6 (AAA): Normal text requires 7:1; large text requires 4.5:1.

Contrast formula: (L1 + 0.05) / (L2 + 0.05) where L is relative luminance per WCAG 2.x definition.

APCA — Accessible Perceptual Contrast Algorithm

APCA (Somers 2022) is the candidate replacement for WCAG 2.x contrast. It models perceptual lightness using exponents (0.56 background, 0.57 foreground) and produces a Lightness Contrast (Lc) value in the range –108 to +106.

Guideline: |Lc| ≥ 60 for body text, ≥ 45 for large text, ≥ 30 for non-text elements. Polarity matters: dark text on light bg vs light text on dark bg use different thresholds.

Gamut Boundaries — sRGB, Display P3, Rec. 2020
  • sRGB (IEC 61966-2-1): Standard web colour space. Primaries at (0.64,0.33), (0.30,0.60), (0.15,0.06). D65 white point.
  • Display P3 (DCI-P3 D65): ~25% wider gamut than sRGB, supported by modern Apple and HDR displays.
  • Rec. 2020 (ITU-R BT.2020): Ultra-wide gamut for HDR/UHD content. ~75% of CIE 1931 visible gamut.
CIE 1931 Standard Observer & Chromaticity

CIE 15:2004: The CIE 1931 2° standard observer defines colour-matching functions x̄(λ), ȳ(λ), z̄(λ) over 380–780 nm. The chromaticity diagram plots x = X/(X+Y+Z) vs y = Y/(X+Y+Z), encompassing the visible gamut as the spectral locus.

The chromaticity diagram in this tool shows the spectral locus, sRGB gamut triangle, D65 white point, and the gradient's colour trace through xy space.

Perceptual Uniformity & OKLab

OKLab (Ottosson 2020): A perceptually uniform colour space designed for gradient interpolation and colour manipulation. Addresses CIE Lab's blue-purple hue non-linearity.

Perceptual uniformity scoring: A gradient is perceptually uniform when the ΔE₀₀ between each adjacent pair of sampled points is approximately equal. The Coefficient of Variation (CV = σ/μ) measures this: CV < 0.3 = uniform.

Mathematical Models and Formulas

Relative Luminance (WCAG 2.x / IEC 61966-2-1):

sRGB Inverse Gamma (companding to linear):
if C_srgb <= 0.04045: C_lin = C_srgb / 12.92
else: C_lin = ((C_srgb + 0.055) / 1.055)^2.4

Relative Luminance:
Y = 0.2126 * R_lin + 0.7152 * G_lin + 0.0722 * B_lin

Range: 0 (black) to 1 (white)
Research, Standards and Citations

CSS Gradients & Color Specifications

[1] W3C (2023). CSS Images Module Level 3. W3C Candidate Recommendation.

[2] W3C (2024). CSS Images Module Level 4. W3C Working Draft.

[3] W3C (2024). CSS Color Level 4. W3C Candidate Recommendation.

[4] IEC 61966-2-1:1999. Colour management — Default RGB colour space — sRGB.

Colour Science & Difference Metrics

[5] CIE (2004). Colorimetry, 3rd Ed. CIE 15:2004.

[6] Sharma, G., Wu, W., Dalal, E.N. (2005). The CIEDE2000 color-difference formula: Implementation notes. Color Res. App., 30(1), 21–30. DOI: 10.1002/col.20070

[7] CIE (2001). Improvement to industrial colour-difference evaluation. CIE 142-2001.

[8] Ottosson, B. (2020). A perceptual color space for image processing. bottosson.github.io/posts/oklab/

Accessibility & Contrast

[9] W3C (2023). Web Content Accessibility Guidelines (WCAG) 2.2. W3C Recommendation.

[10] Somers, A. (2022). APCA Contrast Algorithm — Advanced Perceptual Contrast Algorithm. github.com/Myndex/SAPC-APCA

[11] W3C (2024). WCAG 3.0 Working Draft — Visual Contrast of Text.

Colour Harmony & Gamut

[12] Itten, J. (1961). The Art of Color. Reinhold Publishing.

[13] ITU-R BT.2020-2 (2015). Parameter values for ultra-high definition television systems.

[14] Apple (2017). Wide Color — Working with Display P3 images on iOS and macOS. Developer Documentation.

Perceptual Uniformity Research

[15] Fairchild, M.D. (2013). Color Appearance Models, 3rd Ed. Wiley-Blackwell.

[16] Bujack, R., Turoňová, T.L., Linsen, L. (2022). The Non-Uniform Perceptual Quality of Common Colormaps. IEEE Trans. Vis. Comp. Graphics.

[17] Szafir, D.A. (2018). Modeling Color Difference for Visualization Design. IEEE Trans. Vis. Comp. Graphics, 24(1), 392–401.

About This Tool

This tool provides research-grade analysis of individual gradients with full CIE Lab, OKLab, HSL, ΔE₀₀/76/OK, CIE 1931 chromaticity, gamut coverage, WCAG/APCA contrast, perceptual uniformity, hue continuity, and lightness monotonicity — entirely client-side (zero network). Not a substitute for calibrated measurement or official CIE software.

Research Backend
Backend
Collection-Wide Statistics

Analyse the full 512-gradient collection: luminance distribution, ΔE₀₀ spread, and hue coverage across all curated gradients.

Click "Run Collection Analysis" to compute statistics.
Hue Distribution Histogram
36 bins (10° each). Red line = mean hue. Shows hue coverage across the full collection.
Luminance Distribution Histogram
30 bins. Red line = mean luminance. Shows light/dark balance of the collection.
ΔE₀₀ Distribution Histogram
30 bins. Red line = mean ΔE₀₀. Shows colour difference spread (first→last stop) across the collection.
Perceptual Uniformity Scoring Model

This tool evaluates gradient smoothness using the Coefficient of Variation (CV) of ΔE₀₀ steps. A truly perceptually uniform gradient would have CV = 0 (every step is identical). Real-world gradients have CV between 0.05 (near-perfect) and 2.0+ (highly irregular).

Sampling: N = 64 equidistant points along t ∈ [0, 1]
Step ΔE: ΔE₀₀(sample[i], sample[i+1]) for i = 0..N-2

CV = σ(steps) / μ(steps)

Verdict thresholds:
CV < 0.3 → "Uniform" (perceptually smooth, no banding)
CV 0.3–0.6 → "Moderate" (acceptable, minor irregularity)
CV > 0.6 → "Non-uniform" (visible steps, potential banding)

Note: sRGB interpolation is inherently non-uniform in CIE Lab.
For better uniformity, use OKLab interpolation (CSS Color L4).
Hue Continuity Analysis Model

Hue discontinuities occur when a gradient passes through achromatic regions (low saturation) or wraps around the hue wheel. This analysis detects such jumps.

For each pair of adjacent samples (N=64):
Δh = |hue[i] - hue[i-1]|
if Δh > 180: Δh = 360 - Δh (shortest arc)

max_jump = max(Δh) across all steps
Continuous: max_jump < 60°
Discontinuous: max_jump ≥ 60°

Common discontinuity causes:
- Complementary colour pairs (hue jump ≈ 180°)
- Near-neutral midpoints (undefined hue)
- sRGB interpolation through grey zone
Research backend provides: CIE Lab, OKLab, HSL, LCH colour space analysis | ΔE₀₀/76/OK metrics | CIE 1931 chromaticity diagram | sRGB/P3/Rec.2020 gamut coverage | WCAG & APCA contrast | Perceptual uniformity (CV scoring) | Hue continuity tracking | Lightness monotonicity | Stop-pair comparison matrices | Hue wheel polar plot | Lab a*b* scatter | Collection-wide statistics | Full JSON/CSV/PNG/SVG export. All computation runs on-device with zero network dependency.