Skip to main content
LaboratoryAccessibility & Human Interfaces

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.

StackPython
FocusLAB/LCH color space, Hue preservation, WCAG contrast, Theme export
Author-provided description

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?

Conceptual illustration
Conceptual summary from author-provided project descriptions.
Context

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.

Mechanism

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.

Capabilities
  • — 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
Perceptual vs. objective metrics
Author-provided description

Distinguishes perceptual color distance and hue preservation (LAB/LCH) from objective WCAG relative luminance contrast ratio.

Medical disclaimer
Author-provided description

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.

Shared concerns: making developer environments more human