Dark mode isn't just a light-mode design with the colors flipped — contrast behaves differently against a dark background than a light one, and a naive inversion of an existing palette frequently produces genuinely worse results than a version built with dark mode's specific visual behavior in mind from the start. Treating dark mode as its own genuine design exercise, rather than an automated afterthought, consistently pays off in the finished result users actually experience.
Why simple color inversion often fails
Directly inverting a light-mode palette (swapping a dark-on-light pairing for the same colors light-on-dark) technically preserves the same numeric contrast ratio, since the underlying math is symmetric, but the visual result frequently doesn't feel equally comfortable or readable, because human perception of contrast and glare doesn't behave perfectly symmetrically between light-on-dark and dark-on-light presentations.
The glare and halation problem with pure white on pure black
Pure white text on a pure black background, while technically hitting the maximum possible 21:1 contrast ratio, can create a visual glare or halation effect for many viewers, especially in low ambient light, making it feel harsher and more fatiguing to read for extended periods than the numeric ratio alone would suggest.
Why slightly off-white and off-black is generally preferred
This is exactly why most well-designed dark mode interfaces use an off-white (something like #E8E8E8 or similar, rather than pure #FFFFFF) against a dark gray (something like #121212, rather than pure #000000), which still comfortably clears accessible contrast thresholds while reducing the harsher glare effect of the pure black-and-white extreme.
Saturated colors often need adjustment for dark backgrounds
Vivid, highly saturated colors that work well against a light background can appear to vibrate or feel visually harsh against a dark one, an effect related to how saturation and brightness interact differently with a dark surrounding field. Slightly desaturating or adjusting the lightness of accent colors specifically for dark mode, rather than reusing identical values from light mode, often produces a more comfortable, professional result.
Testing dark mode contrast as its own genuinely separate task
Every text-and-background combination in a dark mode palette needs its own contrast check, run independently rather than assumed to be automatically fine just because the equivalent light-mode pairing passed, since a color adjustment made for one mode doesn't automatically carry the same contrast outcome over to the other mode.
A practical dark mode palette-building approach
Building a dark mode palette as a genuinely separate, deliberate exercise — starting from an off-black background and off-white text as the foundation, then selecting and testing accent colors specifically against that dark foundation, rather than mechanically inverting an existing light palette — consistently produces better, more comfortable real-world results than a quick, automatic inversion.
Testing on an actual OLED or true-black display if possible
True-black OLED screens, increasingly common on phones, render pure black and near-black tones differently than a typical LCD screen does, so testing a dark mode design on real OLED hardware when available catches glare and readability issues that a standard LCD monitor during development might not fully reveal.
Try the Contrast & A11Y tool yourself — free, instant, nothing sent anywhere.
Open the toolFrequently asked questions
Is dark mode as simple as inverting a light mode color palette?
Not really — while a mechanical inversion technically preserves the same numeric contrast ratio, the actual visual result often feels less comfortable due to differences in how glare, saturation, and brightness are perceived against light versus dark backgrounds.
Why do many dark mode designs avoid pure white text on pure black?
Because the maximum-contrast combination can create a glare or halation effect that feels harsh and fatiguing over extended reading, especially in low ambient light, even though it technically achieves the highest possible numeric contrast ratio.
Do accent colors need to be different for dark mode versus light mode?
Often yes — a vivid, saturated color that works well on a light background can feel harsh or seem to vibrate against a dark one, so many dark mode palettes use slightly adjusted, often somewhat desaturated versions of their light-mode accent colors.
Does a color combination that passes contrast in light mode automatically pass in dark mode too?
No, each mode's specific combinations need to be checked independently, since a color's contrast outcome depends on its specific pairing, and adjustments made for one mode don't automatically transfer their contrast result to the other mode.