Pure #000 background
Gray text on blue background
Gray text on green background
Light gray text on white — very low contrast
Dark gray text on near-black — low contrast
The best solution for modern teams and businesses
bg-black — pure black bg
text-gray-400 on bg-blue-500 — gray on color
Purple-to-indigo gradient
Dark ink on a mixed green stop must not report on #000000
Faint warm gray on a bone currentcolor surface
Near-black bg, near-white text — tinted, not pure
Near-white bg, near-black text — good contrast, tinted
Pure #fff background with dark text — acceptable contrast
Near-white text on dark blue — high contrast, not pure white
Dark green text on green bg — same hue family
White text on image background — should not flag low-contrast
bg-black/3 — 3% opacity, not pure black
hover:bg-black/5 — hover state, not pure black
bg-black/50 — 50% opacity, not pure black
Read more about this here if you want to learn more about the topic.
light text over the dark panel, not the light code surface
Light body copy on a faint accent glow that composites to near-black
Muted secondary line on the same faint glow area here
Light copy on a faint mixed wash over a dark ground stays readable
WhatsApp-style light text on a mixed dark green gradient stays readable
Dark ink text on a bone currentcolor surface
Light text on an unknowable currentcolor surface
⚠️ 🚨 ✨ 🎨
⚠️ 🚨 ✨ 🎨