What does Melanopic Light and Blue-Light Lenses conclude, in numbers, about “Screens, Lamps and the 440 to 490 nm Band”?
Answer: Chapter 2 models phones and lamps: a day-mode phone at 40 lux gives 37.3 lux melanopic EDI, night mode 21.5, and violet below 420 nm carries 0.000 to 0.002 of the signal.
Scope of the numbers: Its spectra, lenses, people and days are illustrative models; all calculations are generated by its programs; the book is not medical advice, diagnoses or treats no condition, and tinted lenses must never be worn to drive at night. Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 21.5, 37.3, 40
| source | CCT K | mel-DER | EDI@40 lx | EDI@100 lx |
| phone OLED day | 6479 | 0.932 | 37.3 | 93.2 |
| phone night mode | 2999 | 0.538 | 21.5 | 53.8 |
| LED cool 6500K | 6498 | 0.765 | 30.6 | 76.5 |
| LED warm 3000K | 3003 | 0.402 | 16.1 | 40.2 |
| incandescent | 2885 | 0.459 | 18.4 | 45.9 |
Show the full program
# Chapter 2. p03: Screens and lamps. Five model spectra: an OLED phone
# (blue 460 nm, green 530 nm, red 620 nm primaries) in its day setting
# and its warm night mode, two phosphor white LEDs (450 nm pump), and an
# incandescent lamp. Weights put each white point on the Planckian
# locus. We print the correlated colour temperature (McCamy's formula),
# mel-DER, and the melanopic EDI at the eye for a phone held at reading
# distance in a dark room (40 lux) and for a lamp-lit room (100 lux).
import math
from math import exp, expm1
L = range(380, 781) # wavelength grid, 1 nm steps
def g(x, m, s1, s2): # two-sided Gaussian (Wyman 2013)
return exp(-0.5 * ((x - m) / (s1 if x < m else s2)) ** 2)
def vlam(l): # photopic V(lambda)
return 0.821 * g(l, 568.8, 46.9, 40.5) + 0.286 * g(l, 530.9, 16.3, 31.1)
def opsin(l, lm=480.0): # Govardovskii A1 template
x = lm / l
a = 0.8795 + 0.0459 * exp(-(lm - 300) ** 2 / 11940)
al = 1 / (exp(69.7 * (a - x)) + exp(28 * (0.922 - x))
+ exp(-14.9 * (1.104 - x)) + 0.674)
lb, bb = 189 + 0.315 * lm, 0.195 * lm - 40.5
return al + 0.26 * exp(-((l - lb) / bb) ** 2)
def lens_od(l): # crystalline lens density, approx.
return 1.76 * exp(-(l - 400) / 28.0)
RAW = {l: opsin(l) * 10 ** -lens_od(l) for l in L}
SMEL = {l: RAW[l] / max(RAW.values()) for l in L}
K_D65 = 1.3262 / 1000 # W/lm, melanopic ELR of D65
def gs(l, m, f): # Gaussian band: peak m, FWHM f
return exp(-2.7726 * ((l - m) / f) ** 2)
def planck(l, t):
m = l * 1e-9
return 1.0 / (m ** 5 * expm1(1.4388e-2 / (m * t)))
DEVICES = { # relative spectral power
"phone OLED day": lambda l: (1.12 * gs(l, 460, 25) + gs(l, 530, 35)
+ 1.05 * gs(l, 620, 30)),
"phone night mode": lambda l: (0.44 * gs(l, 460, 25)
+ gs(l, 530, 35)
+ 1.80 * gs(l, 620, 30)),
"LED cool 6500K": lambda l: (2.32 * gs(l, 450, 20) + gs(l, 545, 100)
+ 0.50 * gs(l, 630, 80)),
"LED warm 3000K": lambda l: (0.96 * gs(l, 450, 20) + gs(l, 555, 110)
+ 1.30 * gs(l, 625, 90)),
"incandescent": lambda l: planck(l, 2856),
}
def der(spec, t=lambda l: 1.0): # mel EDI per lux, through t
em = math.fsum(spec(l) * t(l) * SMEL[l] for l in L)
ev = 683.0 * math.fsum(spec(l) * t(l) * vlam(l) for l in L)
return em / K_D65 / ev
def mel_through(spec, t): # melanopic share a filter passes
return (sum(spec(l) * t(l) * SMEL[l] for l in L)
/ sum(spec(l) * SMEL[l] for l in L))
def xbar(l):
return (1.056 * g(l, 599.8, 37.9, 31.0) + 0.362 * g(l, 442.0, 16.0, 26.7)
- 0.065 * g(l, 501.1, 20.4, 26.2))
def zbar(l):
return 1.217 * g(l, 437.0, 11.8, 36.0) + 0.681 * g(l, 459.0, 26.0, 13.8)
def cct(spec):
x_, y_, z_ = (math.fsum(spec(l) * f(l) for l in L)
for f in (xbar, vlam, zbar))
x, y = x_ / (x_ + y_ + z_), y_ / (x_ + y_ + z_)
n = (x - 0.3320) / (0.1858 - y)
return 449 * n ** 3 + 3525 * n ** 2 + 6823.3 * n + 5520.33
if __name__ == "__main__":
print(" source CCT K mel-DER EDI@40 lx EDI@100 lx")
for name, s in DEVICES.items():
d = der(s)
print(" {:17s} {:5.0f} {:7.3f} {:9.1f} {:10.1f}".format(
name, cct(s), d, 40 * d, 100 * d))Single source and citation
Fan, Y. (2026). Melanopic Spectral Integration, Blue-Light Melatonin Suppression and Lens Transmittance Optimization (Version 1.0.0), Chapter 2: Screens, Lamps and the 440 to 490 nm Band. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-104 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026104,
author = {Fan, Yafu},
title = {Melanopic Spectral Integration, Blue-Light Melatonin Suppression and Lens Transmittance Optimization},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Two Ways of Seeing Light
- Chapter 3 · From Melanopic Lux to Melatonin and Minutes
- Chapter 4 · Testing the Clear "Blue-Blocker"
- Chapter 5 · Protection Against Colour
- Chapter 6 · Lenses On, Lenses Off
- Chapter 7 · The Huangdi Neijing and the Melanopic Standard
- Chapter 8 · A Light Meter, a Lens and a Notebook