Keratoconus Color Toolkit & Coloratio
Hue-preserving LAB/LCH contrast adjustment for visual sensitivities.
Python color tooling built for visual sensitivities with WCAG contrast checking and automatic color adjustment in LAB/LCH designed to preserve hue, exporting themes for Ghostty, Neovim, and tmux.
The problem
Naively brightening or darkening RGB hex codes to meet WCAG contrast shifts perceived hue and can still trigger glare or halation for visually sensitive readers.
Approach
Performs contrast validation and automatic lightness adjustments in perceptual LAB/LCH color space to preserve hue while meeting target contrast, then exports ready-to-use themes for Ghostty, Neovim, and tmux.
Developers with visual sensitivities or anyone designing accessible, hue-consistent terminal and editor palettes.
Perceptual Palette & Contrast Relationship
Why does adjusting lightness in LAB/LCH preserve hue better than naive RGB scaling?
Naively brightening or darkening RGB hex codes to meet WCAG contrast shifts perceived hue and can still trigger glare or halation for visually sensitive readers.
Performs contrast validation and automatic lightness adjustments in perceptual LAB/LCH color space to preserve hue while meeting target contrast, then exports ready-to-use themes for Ghostty, Neovim, and tmux.
- — WCAG contrast checking and automatic adjustment in LAB/LCH intended to preserve hue.
- — Exports palettes for Ghostty, Neovim, and tmux.
Architecture & notes
Claims are labeled by evidence type. Details requiring direct source inspection are kept explicit.
Capabilities2
- — WCAG contrast checking and automatic adjustment in LAB/LCH intended to preserve hue.
- — Exports palettes for Ghostty, Neovim, and tmux.
Design & implementation evidence2
Distinguishes perceptual color distance and hue preservation (LAB/LCH) from objective WCAG relative luminance contrast ratio.
Color ergonomic tooling only — does not offer medical diagnoses or clinical recommendations.
Scope & limitations1
- — Conceptual palette comparison does not execute the Python LAB/LCH solver directly.
Related work
Shared concerns: making developer environments more human