R·0.2126 G·0.7152 B·0.0722
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Dark Mode Contrast & Luminance Lab

A real dark-mode theme lives or dies on one formula: the WCAG relative-luminance calculation that turns an sRGB color into a perceptual brightness value, and the contrast-ratio comparison built on top of it. This simulator renders your chosen background and text colors as floating panels in 3D, plus a live instanced bar chart of the gamma-corrected, cone-weighted R/G/B contributions that make up each color's luminance — so you can see directly why green dominates perceived brightness while blue barely moves it. Drag the RGB sliders (or jump to the dark/light presets), and the contrast ratio, WCAG pass/fail verdict and both luminance values update in real time, exactly as a browser's accessibility checker would score your palette.