Dark Mode Converter
Paste a light-theme palette and get a suggested dark-mode equivalent for every colour. A starting point to refine, with contrast shown against the dark background.
One colour per line, as name: colour or just a colour. HEX, rgb(), hsl() and CSS names all work (up to 20). The first colour is treated as the page background when contrast is shown.
Light and dark side by side
- --backgroundpage backgroundLight#FFFFFFDark#141414
- --surface1.08:1 on dark background · Low contrastLight#F4F4F5Dark#1C1C1F
- --text13.59:1 on dark background · AAALight#18181BDark#DDDDE0
- --primary3.14:1 on dark background · AA large / UILight#2563EBDark#255CD6
- --accent8.02:1 on dark background · AAALight#F59E0BDark#E49D24
- --danger3.73:1 on dark background · AA large / UILight#DC2626Dark#CF3737
Export
:root {
--background: #FFFFFF;
--surface: #F4F4F5;
--text: #18181B;
--primary: #2563EB;
--accent: #F59E0B;
--danger: #DC2626;
}
.dark {
--background: #141414;
--surface: #1C1C1F;
--text: #DDDDE0;
--primary: #255CD6;
--accent: #E49D24;
--danger: #CF3737;
}How the conversion works
Each colour is converted to HSL. Its lightness is inverted (a lightness of 100 becomes 0), then mapped into a comfortable range of 8–96 so white becomes a near-black surface and black becomes an off-white text colour rather than pure #000 or #FFF. Saturation is scaled down to the percentage you choose, because vivid colours tend to vibrate against dark surfaces. The hue never changes.
Treat it as a starting point
Inversion is a quick, predictable first draft, not a finished theme. A mid-tone brand colour stays mid-tone, so check the contrast figures shown for each colour against your dark background, and fine tune any that fall short, for example with the Contrast Checker.
Related tools
Color Converter
One value in — HEX, RGB, HSL, HSV, CMYK, Lab, OKLCH and the nearest CSS name out. Copy any format.
Contrast Checker
WCAG 2.1 ratio and WCAG 3.0 APCA Lc side by side, with a live preview and a fix suggestion when a pair fails.
Palette Generator
6 harmony modes from one base colour, including double-complementary. Export as CSS, SCSS, Tailwind or JSON.
Tints & Shades
A 10-step 50-900 scale for design tokens. Tints lighten, shades darken — never swapped.
Gradient Generator
Linear, radial and conic CSS gradients with a live preview and 22 curated presets.
Color Picker
A canvas hue/saturation/lightness picker with keyboard control and your last 10 colours.
Color Wheel
Drag around a hue ring and pick a shade in the triangle, then copy HEX, RGB, HSL, HSV or OKLCH.
OKLCH Color Picker
Set OKLCH lightness, chroma and hue; out-of-gamut values are fitted to sRGB. Copy HEX, CSS oklch() and more.
Color Blindness Simulator
See any palette or image through 8 types of colour vision deficiency.
Image Color Extractor
Upload an image, get its 5 dominant colours — nothing leaves your browser.
Palette from Image
Pull a 3–16 colour palette from any image with median cut, then export CSS variables, SCSS, Tailwind or JSON.
Tailwind Color Mapper
Find the nearest Tailwind CSS v3 token for any colour, with the full family scale.
CSS Variables Exporter
Turn a list of named colours into CSS custom properties, SCSS, Tailwind config or JSON.