Wavelength Cursor
555 nm
380 nmUV boundary555 nm peak780 nm
Observer Standard

Selects the x̄ ȳ z̄ colour matching functions displayed in the CMF canvas.

Overlay Curves
Notable Wavelengths
Keyboard Shortcuts
/ Move cursor ±1 nm
Shift+←/→ Move cursor ±10 nm
1 CIE 1931 · 2 CIE 1964 · 3 CIE 2012
C Copy hex · R Reset

Spectral Band & CMF Overlay

Hover or drag across the canvas to move the wavelength cursor. The rainbow strip shows the perceived colour of each monochromatic wavelength. Curves show the selected CMF and optional overlays.

Photopic V(λ) vs Scotopic V′(λ)

Photopic V(λ) — Km = 683 lm/W, peak 555 nm
Scotopic V′(λ) — Km′ = 1700 lm/W, peak 507 nm

LMS Cone Fundamentals

L (long) ~560 nm
M (medium) ~530 nm
S (short) ~420 nm

Wavelength Detail

CMF Data Table (5 nm step)

Active row highlighted in yellow
λ (nm) x̄(λ) ȳ(λ) z̄(λ) V(λ) V′(λ) L(λ) M(λ) S(λ) Hex
Export & Share
PNG exports the spectrum canvas. CSV copies 81-point CMF + V(λ) + LMS data. JSON includes full observer + wavelength data. Share URL encodes current wavelength and observer.
Data content

CSV contains: wavelength (nm), CIE x̄ ȳ z̄, photopic V(λ), scotopic V′(λ), LMS cone fundamentals, sRGB hex for each 5 nm step (380–780 nm, 81 points).
JSON includes: observer setting, current wavelength, full grid with CMF, V(λ), V′(λ), LMS, hex for all 81 points.

Tip: CSV can be imported directly into spreadsheet software. JSON can be used as a data source for external spectral analysis tools.
Applicable standards & principles
Visible Range & the Electromagnetic Spectrum

The visible spectrum spans approximately 380–780 nm. Shorter wavelengths (below 380 nm) are ultraviolet (UV); longer wavelengths (above 780 nm) are near-infrared (NIR). Within the visible range, wavelength is perceived as hue: violet at 380 nm through blue, cyan, green, yellow, orange to red at 780 nm.

Band Range (nm) Approx. colour Violet 380 – 445 Deep violet → violet Blue 445 – 500 Blue → cyan blue Cyan 500 – 520 Cyan → blue-green Green 520 – 565 Green Yellow 565 – 590 Yellow Orange 590 – 625 Orange Red 625 – 780 Red → deep red
CIE 15:2004 — Colorimetry & Standard Observer

In 1931 the CIE standardised how a “normal” observer perceives any spectral distribution. Three primaries R, G, B were mixed until subjects matched a monochromatic test light at each wavelength. The resulting colour matching functions x̄(λ), ȳ(λ), z̄(λ) allow any SPD to be condensed to three tristimulus values. This tool uses the Wyman et al. (2013) piecewise Gaussian analytical approximation for the 1931 observer, valid 380–780 nm with <0.06% RMS error.

The 1964 10° observer covers a wider retinal area (relevant for large surfaces or industrial colour measurement). The 2012 (Stockman–Sharpe) observer refines the 2° data with modern cone fundamentals.

Reference: CIE 15:2004; C. Wyman et al., JCGT 2(2), 2013.

Photopic vs Scotopic Vision & the Purkinje Effect

Photopic vision (bright conditions, >3 cd/m²) uses three cone types — L (~560 nm), M (~530 nm), S (~420 nm). The combined sensitivity curve V(λ) peaks at 555 nm (yellow-green) with Km = 683 lm/W.

Scotopic vision (dim conditions, <0.001 cd/m²) relies on rods only. The scotopic efficiency V′(λ) peaks at 507 nm (blue-green) with Km′ = 1700 lm/W. This is the Purkinje shift: at dusk, blue-greens look relatively brighter than reds compared to daylight.

Photopic: Km = 683 lm/W, λ_peak = 555 nm Scotopic: Km' = 1700 lm/W, λ_peak = 507 nm Mesopic: Mixed, ~0.001–3 cd/m²
LMS Cone Fundamentals

The three cone types in the human retina are named by the wavelength they respond to most strongly: L (long, ~560 nm), M (medium, ~530 nm), and S (short, ~420 nm). The LMS cone fundamentals are the basis functions that, after a 3×3 linear transform, yield the XYZ tristimulus values.

L(λ) ≈ 1.06·G(570,34) + 0.44·G(543,17) ← red-sensitive M(λ) ≈ 0.97·G(543,28) + 0.33·G(510,16) ← green-sensitive S(λ) ≈ 1.78·G(448,18) + 0.14·G(420,12) ← blue-sensitive G(μ,σ) = exp(−½·((λ−μ)/σ)²) (Gaussian approx)

About 8% of men have anomalous L or M cone sensitivity (red–green colour vision deficiency). About 0.003% of people have no S cones (tritanopia).

IEC 61966-2-1 — sRGB Colour Space

All colour chips in this laboratory are rendered via the IEC 61966-2-1 sRGB colour space: linear RGB from 3×3 XYZ matrix, then gamma encoding (γ ≈ 1/2.2). Out-of-gamut colours are normalised by maximum channel before encoding.

Reference: IEC 61966-2-1:1999.

Dominant Wavelength

The dominant wavelength is the spectral wavelength that, when mixed with the reference white (D65), matches the chromaticity of the test stimulus. It is found by drawing a line from D65 through the test point on the CIE xy diagram and extending to the spectral locus. For non-spectral (purple) colours, the complementary wavelength is reported instead.

Mathematical formulations
CIE Tristimulus Integration
X = (1/k) · Σ S(λ) · x̄(λ) · Δλ Y = (1/k) · Σ S(λ) · ȳ(λ) · Δλ Z = (1/k) · Σ S(λ) · z̄(λ) · Δλ k = Σ ȳ(λ) · Δλ For reflectance: S(λ) = R(λ) · I(λ)
CIE 1931 2° Observer — Piecewise Gaussian
g(λ; μ, σ₁, σ₂) = exp(−½ d² / σₖ²) where d = λ − μ, σₖ = σ₁ if d < 0 else σ₂ x̄(λ)=1.056·g(599.8,37.9,31.0) + 0.362·g(442.0,16.0,26.7) − 0.065·g(501.1,20.4,26.2) ȳ(λ)=0.821·g(568.8,46.9,40.5) + 0.286·g(530.9,16.3,31.1) z̄(λ)=1.217·g(437.0,11.8,36.0) + 0.681·g(459.0,26.0,13.8)

Source: C. Wyman, P.-P. Sloan, P. Shirley, JCGT 2(2), 2013.

CIE xy Chromaticity Coordinates
x = X / (X + Y + Z) y = Y / (X + Y + Z) Spectral locus: boundary of monochromatic wavelengths in xy space Purple line: connects 380 nm to 780 nm (non-spectral colours) Planck locus: chromaticity of blackbody radiators 1000–25000 K
Luminous Efficacy
Φᵥ = Km · ∫ Φ(λ) · V(λ) dλ Km = 683 lm/W (photopic maximum, at 555 nm) Km' = 1700 lm/W (scotopic maximum, at 507 nm)
LMS Cone Fundamentals (Gaussian approximation)
L(λ) = 1.06·G(570,34) + 0.44·G(543,17) M(λ) = 0.97·G(543,28) + 0.33·G(510,16) S(λ) = 1.78·G(448,18) + 0.14·G(420,12) G(μ,σ) = exp(−½·((λ−μ)/σ)²) XYZ ↔ LMS via 3×3 linear transform (Hunt–Pointer–Estévez) [L] [ 0.4002 0.7076 -0.0808] [X] [M] = [-0.2263 1.1653 0.0457] [Y] [S] [ 0.0000 0.0000 0.9182] [Z]
sRGB Conversion (IEC 61966-2-1)
[R_lin] [ 3.2406 -1.5372 -0.4986] [X] [G_lin] = [-0.9689 1.8758 0.0415] [Y] [B_lin] [ 0.0557 -0.2040 1.0570] [Z] Transfer: C = C_lin^(1/2.2) (simplified gamma) Out-of-gamut: normalise by max(R,G,B) before encoding
CIELAB & ΔE*ab
L* = 116·f(Y/Yₙ) − 16 a* = 500·[f(X/Xₙ) − f(Y/Yₙ)] b* = 200·[f(Y/Yₙ) − f(Z/Zₙ)] f(t) = t^(1/3) if t > 0.008856 f(t) = 7.787·t + 16/116 otherwise ΔE*ab = √[(ΔL*)² + (Δa*)² + (Δb*)²]
Academic references & citations
  1. CIE, Colorimetry, 3rd Edition, CIE 15:2004. CIE 1931 and 1964 Standard Observer CMFs, CIELAB, standard illuminants.
  2. C. Wyman, P.-P. Sloan, P. Shirley, “Simple Analytic Approximations to the CIE XYZ Color Matching Functions,” JCGT 2(2):1–11, 2013. Piecewise Gaussian approximation used for the CIE 1931 observer in this lab.
  3. A. Stockman, L. T. Sharpe, “The spectral sensitivities of the middle- and long-wavelength-sensitive cones derived from measurements in observers of known genotype,” Vision Research 40:1711–1737, 2000. Cone fundamentals underlying the CIE 2012 observer.
  4. G. Wyszecki, W. S. Stiles, Color Science: Concepts and Methods, Quantitative Data and Formulae, 2nd ed., Wiley, 2000. Comprehensive reference for visible spectrum, CMFs, luminous efficiency, chromaticity.
  5. IEC, IEC 61966-2-1:1999 — sRGB Colour Space. XYZ-to-sRGB matrix and transfer function used for all hex colour output.
  6. M. D. Fairchild, Color Appearance Models, 3rd ed., Wiley, 2013. Colour appearance, chromatic adaptation, cone fundamentals, Purkinje shift.
  7. D. B. Judd, G. Wyszecki, Color in Business, Science and Industry, 3rd ed., Wiley, 1975. Historical reference for photopic/scotopic vision, Fraunhofer lines, spectral nomenclature.
  8. CIE, CIE S 014-1:2006 — Colorimetric Observers. Formal definition of the CIE standard colorimetric observers.
  9. W. S. Stiles, J. M. Burch, “N.P.L. colour-matching investigation: Final report (1958),” Optica Acta 6:1–26, 1959. 10° observer data underlying CIE 1964.
  10. E. R. Hunt, M. R. Pointer, Measuring Colour, 4th ed., Wiley, 2011. Practical colorimetry, dominant wavelength, LMS transforms.
Research & advanced analysis
CIE xy Chromaticity Diagram — spectral locus · Planck locus · D65 / D50 white points · current λ cursor
CMF Comparison — All 3 Observers — x̄ (red) · ȳ (green) · z̄ (blue) · (—) 1931 · (- -) 1964 · (··) 2012
Spectral Band Analysis

CMF values, photopic/scotopic sensitivity, and LMS cone response at the midpoint of each named spectral band, computed with the currently selected observer.

Band Range V(λ) V′(λ) L M S Hex
Observer Comparison — 1931 vs 1964 vs 2012

CMF values at 14 test wavelengths under all three CIE observers. ΔE*ab computed in CIELAB between 1931↔1964 and 1931↔2012 to quantify observer metamerism.

λ x̄ (31) ȳ (31) z̄ (31) 1931 1964 2012 ΔE 31↔64 ΔE 31↔12
Spectral Locus Data (10 nm steps)
λ (nm) x y Swatch Hex
Research backend: CIE xy chromaticity with spectral locus, Planck locus, D65/D50 white points, and current λ cursor. Three-observer CMF comparison chart (1931, 1964, 2012). Spectral band analysis table. Observer metamerism ΔE comparison. Full spectral locus data with chromaticity coordinates and hex swatches. All computation on-device.