What does Thumb Zones and the First Screen conclude, in numbers, about “The Arithmetic of Gold on Black: Display Polarity, Halation, Contrast Floors and Ceilings, and Price Numerals”?
Answer: This chapter breaks "dark luxury" into a few accounts that can be computed. The first is display polarity: dark text on a light ground versus light text on a dark ground, which one is read faster and more accurately, and what the evidence says. The second is contrast: WCAG 2.1 sets floors and no ceiling, yet in dark themes excessive contrast is a common fault. The third is gold: a single gold hue has only one usable band of lightness on a dark ground and another on a light ground. The fourth is type: how many characters each step of the type scale fits on the 390 and 360 pixel viewports, and how many device pixels a hairline keeps on a 3x screen. The last is the price itself: how to write it, which numeral style to use, and how instalments add back to the shelf price.
Scope of the numbers: All brands and figures are invented samples computed by the book's programs; laws on privacy consent and accessibility are described only in general terms and are not legal advice.
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: 360, 390
| type scale: exact -> rounded px | |
| caption | -1 12.800 -> 13 |
| body | 0 16.000 -> 16 |
| lead | 1 20.000 -> 20 |
| title-3 | 2 25.000 -> 25 |
| title-2 | 3 31.250 -> 31 |
| title-1 | 4 39.062 -> 39 |
| characters per line inside the gutters | |
| size px | 390: zh / latin 360: zh / latin |
| caption | 13 27 / 55 25 / 50 |
| body | 16 22 / 44 20 / 41 |
| lead | 20 17 / 35 16 / 32 |
| title-3 | 25 14 / 28 13 / 26 |
| title-2 | 31 11 / 23 10 / 21 |
| title-1 | 39 9 / 18 8 / 16 |
| sample phone | 1 CSS px = 0.1657 mm; viewing distance 300 mm |
| caption em 2.15 mm, angle of the em 0.411 deg, Latin x-height (0.5 em) 0.206 deg | |
| body em 2.65 mm, angle of the em 0.506 deg, Latin x-height (0.5 em) 0.253 deg | |
| title-3 em 4.14 mm, angle of the em 0.791 deg, Latin x-height (0.5 em) 0.395 deg | |
| title-1 em 6.46 mm, angle of the em 1.234 deg, Latin x-height (0.5 em) 0.617 deg | |
| a 120-character Chinese product description at body size | |
| 390x844 | 22 chars/line, 6 lines, 153.6 px tall = 0.182 of the viewport height |
| 360x780 | 20 chars/line, 6 lines, 153.6 px tall = 0.197 of the viewport height |
| stem thickness in device pixels at 3x (stem ratio in em x size x DPR) | |
| size px r | 0.02 r=0.03 r=0.05 r=0.08 r=0.10 |
| caption | 13 0.78 1.17 1.95 3.12 3.90 |
| body | 16 0.96 1.44 2.40 3.84 4.80 |
| lead | 20 1.20 1.80 3.00 4.80 6.00 |
Show the full program
# Chapter 4. p42: The kit type scale (16 px base, ratio 1.25) on Nightamber's two sample viewports.
# Viewports 390x844 and 360x780 CSS px, compact gutter 16 px each side (kit layout tokens).
# Chinese glyphs are taken as 1 em wide; Latin text as 0.5 em per character on average (assumption).
# Physical size uses a sample phone of 460 ppi at 3 device pixels per CSS px and a 300 mm viewing distance
# (assumptions for the arithmetic). Stroke ratios are assumed stem thicknesses in em, not font measurements.
import math
from fractions import Fraction
BASE, RATIO = 16, Fraction(5, 4)
STEPS = {"caption": -1, "body": 0, "lead": 1, "title-3": 2, "title-2": 3, "title-1": 4}
LINE_H = {"caption": 1.5, "body": 1.6, "lead": 1.5, "title-3": 1.3, "title-2": 1.25, "title-1": 1.2}
VIEWS = [(390, 844), (360, 780)]
GUTTER = 16
PPI, DPR, DIST_MM = 460, 3, 300
sizes = {}
print("type scale: exact -> rounded px")
for name, k in STEPS.items():
exact = BASE * RATIO ** k
sizes[name] = int(exact + Fraction(1, 2))
print(" {:<8} {:>2} {:8.3f} -> {:2d}".format(name, k, float(exact), sizes[name]))
print("characters per line inside the gutters")
print(" size px " + " ".join("{}: zh / latin".format(w) for w, _ in VIEWS))
for name, px in sizes.items():
cells = []
for w, _ in VIEWS:
col = w - 2 * GUTTER
cells.append("{:>6} / {:>3}".format(col // px, int(col / (0.5 * px))))
print(" {:<8} {:3d} {}".format(name, px, " ".join(cells)))
mm_per_css = 25.4 * DPR / PPI
print("sample phone: 1 CSS px = {:.4f} mm; viewing distance {} mm".format(mm_per_css, DIST_MM))
for name in ("caption", "body", "title-3", "title-1"):
em_mm = sizes[name] * mm_per_css
ang = math.degrees(2 * math.atan(em_mm / 2 / DIST_MM))
print(" {:<8} em {:.2f} mm, angle of the em {:.3f} deg, Latin x-height (0.5 em) {:.3f} deg".format(
name, em_mm, ang, ang / 2))
print("a 120-character Chinese product description at body size")
for w, h in VIEWS:
per = (w - 2 * GUTTER) // sizes["body"]
lines = math.ceil(120 / per)
height = lines * sizes["body"] * LINE_H["body"]
print(" {}x{}: {} chars/line, {} lines, {:.1f} px tall = {:.3f} of the viewport height".format(
w, h, per, lines, height, height / h))
print("stem thickness in device pixels at {}x (stem ratio in em x size x DPR)".format(DPR))
ratios = [0.02, 0.03, 0.05, 0.08, 0.10]
print(" size px " + " ".join("r={:.2f}".format(r) for r in ratios))
for name, px in sizes.items():
print(" {:<8} {:2d} ".format(name, px) + " ".join("{:6.2f}".format(r * px * DPR) for r in ratios))
print("smallest size (CSS px) whose stem covers 1 device px at 3x, and 1 CSS px")
for r in ratios:
print(" r={:.2f}: >= {:5.2f} px for 1 device px; >= {:5.1f} px for 1 CSS px".format(
r, 1 / (r * DPR), 1 / r))Single source and citation
Fan, Y. (2026). Mobile Thumb-Zone Kinetics, Dark-Luxury Micro-Interactions and Above-the-Fold Visual Retention Engineering (Version 0.1.0), Chapter 4: The Arithmetic of Gold on Black: Display Polarity, Halation, Contrast Floors and Ceilings, and Price Numerals. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-137 · v0.1.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026137,
author = {Fan, Yafu},
title = {Mobile Thumb-Zone Kinetics, Dark-Luxury Micro-Interactions and Above-the-Fold Visual Retention Engineering},
year = {2026},
publisher = {5D Library},
edition = {0.1.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Method: Four Measurable Losses, the Book's Sample, Evidence Grades and A/B Design
- Chapter 2 · The Thumb Zone: the Geometry of What a Finger Can Reach
- Chapter 3 · The Sticky-Header Tax: Browser Bars, Safe Areas, Stacked Banners and Floating Widgets
- Chapter 6 · Above the Fold: Pixel Allocation, the Arithmetic of Three Web Metrics, the Evidence on Skeleton Screens and a Hero Byte Budget
- Chapter 7 · The Boutique Playbook: Product Page, Checkout, Private-Message Entry, Membership Page and the Distillation Spec
- Chapter 8 · Practice: The Nightamber Product Page from Diagnosis and Redesign to a Pre-Registered A/B Test