What does Colour-Vision Deficiency and Discriminability conclude, in numbers, about “Eight Per Cent and Four and a Half to One: Why Red and Green Buttons That Pass Contrast Still Collide”?

Answer: Chapters 1 to 4 present population shares and a counterexample, sRGB linearisation and WCAG contrast, Machado's three simulation matrices and confusion pairs, and an implementation of CIELAB and CIEDE2000 checked digit by digit against published test data.

Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations (21 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 only

red-green colour-deficient share and what a site meets
groupshareper10kP>=1 of 5of 10n90%
European men0.0808000.3410.56628
Chinese/Japanese men, low0.0404000.1850.33557
Chinese/Japanese men, high0.0656500.2850.48935
European women0.004400.0200.039575
50/50 mix, European0.0424200.1930.34954
50/50 mix, East Asian low0.0222200.1050.199104
n90% = smallest review panel with a 0.9 chance of one member
Show the full program
# Chapter 1. p11: how many red-green colour-deficient users a site meets.
# Model: binomial counting. Shares are the survey figures summarised by
# Birch 2012 (JOSA A): about 8% of European Caucasian men and about 0.4%
# of women; 4% to 6.5% of men of Chinese and Japanese ethnicity. The
# 50/50 audience mix and the panel sizes are illustrative.
import math


def lin(c):
    v = c / 255.0
    if v <= 0.04045:
        return v / 12.92
    return ((v + 0.055) / 1.055) ** 2.4


def rgb(h):
    h = h.lstrip("#")
    return tuple(lin(int(h[i:i + 2], 16)) for i in (0, 2, 4))


def lum(c):
    return math.fsum((0.2126 * c[0], 0.7152 * c[1], 0.0722 * c[2]))


def contrast(a, b):
    hi, lo = sorted((lum(a), lum(b)), reverse=True)
    return (hi + 0.05) / (lo + 0.05)

GROUPS = (("European men", 0.080),
          ("Chinese/Japanese men, low", 0.040),
          ("Chinese/Japanese men, high", 0.065),
          ("European women", 0.004),
          ("50/50 mix, European", 0.5 * 0.080 + 0.5 * 0.004),
          ("50/50 mix, East Asian low", 0.5 * 0.040 + 0.5 * 0.004))


def at_least_one(p, n):
    return 1.0 - (1.0 - p) ** n


def panel_for(p, target=0.9):
    return math.ceil(math.log(1.0 - target) / math.log(1.0 - p))


if __name__ == "__main__":
    print("red-green colour-deficient share and what a site meets")
    print("group                        share  per10k  P>=1 of 5"
          "  of 10  n90%")
    for name, p in GROUPS:
        print("{:<27s} {:6.3f}  {:6.0f}  {:9.3f}  {:5.3f}  {:4d}"
              .format(name, p, 10000 * p, at_least_one(p, 5),
                      at_least_one(p, 10), panel_for(p)))
    print("n90% = smallest review panel with a 0.9 chance of one member")

Single source and citation

Fan, Y. (2026). Simulating Colour-Vision Deficiency and Colour Discriminability: Buttons and Charts as Seen by Red-Green Colour-Deficient Users (Version 1.0.0), Chapter 1: Eight Per Cent and Four and a Half to One: Why Red and Green Buttons That Pass Contrast Still Collide. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-324 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026324,
  author    = {Fan, Yafu},
  title     = {Simulating Colour-Vision Deficiency and Colour Discriminability: Buttons and Charts as Seen by Red-Green Colour-Deficient Users},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book