What does Melanopic Light and Blue-Light Lenses conclude, in numbers, about “Lenses On, Lenses Off”?
Answer: Chapter 6 lays out a day: in 150 lux of warm light an amber lens still passes 29.6, and only a red lens or dimmer light meets the evening ceiling; wearing a red lens all day cuts the toy model's morning advance from 17.9 to 5.5 minutes.
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: 17.9, 5.5
| no glasses | net shift | +17.9 min/day |
| amber 20-23 | net shift | +18.9 min/day |
| red 20-23 | net shift | +20.2 min/day |
| amber all day | net shift | +13.8 min/day |
| red all day | net shift | +5.5 min/day |
Show the full program
# Chapter 6. p12: Why the glasses come off in the morning. A toy phase
# response: an hour of light shifts the clock by A * E / (E + 100) *
# sin(pi * d / 8) hours for |d| < 8, else 0, where d = hours after the
# core-temperature minimum (05:00 here) and A = 0.1; positive is an
# advance. Light in the 8 hours before the minimum delays, in the 8
# hours after it advances, and midday to early evening is a dead zone.
# The shape follows published human curves only roughly (Khalsa et al.
# 2003); all numbers are illustrative. An intrinsic period near 24.2 h
# needs about 12 minutes of advance a day to stay in step.
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 (math.fsum(spec(l) * t(l) * SMEL[l] for l in L)
/ math.fsum(spec(l) * SMEL[l] for l in L))
from math import pi, sin
def sig(l, c, w=6.0, lo=0.02, hi=0.92):
return lo + (hi - lo) / (1.0 + exp(-(l - c) / w))
PLAN = {7: ("daylight", 1000), 8: ("LED cool 6500K", 300),
12: ("daylight", 5000), 18: ("LED warm 3000K", 150),
19: ("LED warm 3000K", 150), 20: ("LED warm 3000K", 150),
21: ("phone OLED day", 140), 22: ("phone OLED day", 140)}
for h in (9, 10, 11, 13, 14, 15, 16, 17):
PLAN[h] = ("LED cool 6500K", 400)
def edi(src, lux, lens):
if src == "daylight":
return lux * (1.0 if lens is None else
mel_through(lambda l: 1.0, lens))
s = DEVICES[src]
return lux * der(s) * (1.0 if lens is None else mel_through(s, lens))
def shift(worn_hours, lens):
tot = 0.0
for h, (src, lux) in PLAN.items():
e = edi(src, lux, lens if h in worn_hours else None)
d = (h + 0.5 - 5 + 12) % 24 - 12
if abs(d) < 8:
tot += 0.1 * e / (e + 100.0) * sin(pi * d / 8)
return 60 * tot
if __name__ == "__main__":
amber, red = (lambda l: sig(l, 500)), (lambda l: sig(l, 550))
ev, allday = (20, 21, 22), tuple(range(7, 23))
for name, hours, lens in (("no glasses", (), None),
("amber 20-23", ev, amber),
("red 20-23", ev, red),
("amber all day", allday, amber),
("red all day", allday, red)):
print(" {:16s} net shift {:+6.1f} min/day".format(
name, shift(hours, lens)))Single source and citation
Fan, Y. (2026). Melanopic Spectral Integration, Blue-Light Melatonin Suppression and Lens Transmittance Optimization (Version 1.0.0), Chapter 6: Lenses On, Lenses Off. 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 2 · Screens, Lamps and the 440 to 490 nm Band
- Chapter 3 · From Melanopic Lux to Melatonin and Minutes
- Chapter 4 · Testing the Clear "Blue-Blocker"
- Chapter 5 · Protection Against Colour
- Chapter 7 · The Huangdi Neijing and the Melanopic Standard
- Chapter 8 · A Light Meter, a Lens and a Notebook