Violet Haze color palette
Violet Haze is a 5-color palette drawing on purples, greens and neutrals. In OKLCH its lightness runs from 28% (#2D1B4E, dark) to 89% (#DFD8E4, light), and its most saturated color, #B79CE0, is moderately saturated. Its colors are too low in chroma to lean warm or cool. 4 of its 10 color pairs reach the WCAG AA ratio of 4.5:1 for body text. It is tagged spring, calm and purple.
- Oxford Blue #2D1B4E
- Dusty Grape #5B4971
- Slate Gray #7A9E7E
- Cool Steel #B79CE0
- Light Gray #DFD8E4
Color codes
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| Oxford Blue | #2D1B4E | rgb(45, 27, 78) | hsl(261, 49%, 21%) | oklch(27.6% 0.09 296.3) |
| Dusty Grape | #5B4971 | rgb(91, 73, 113) | hsl(267, 22%, 36%) | oklch(44.1% 0.068 304.4) |
| Slate Gray | #7A9E7E | rgb(122, 158, 126) | hsl(127, 16%, 55%) | oklch(66.3% 0.061 147.8) |
| Cool Steel | #B79CE0 | rgb(183, 156, 224) | hsl(264, 52%, 75%) | oklch(74.1% 0.1 302.2) |
| Light Gray | #DFD8E4 | rgb(223, 216, 228) | hsl(275, 18%, 87%) | oklch(89.1% 0.018 311.6) |
Accessibility
The best text and background pairs in Violet Haze, by WCAG 2 contrast ratio, with the APCA lightness contrast (Lc) of the text on its background.
| Pair | WCAG 2 | Level | APCA Lc |
|---|---|---|---|
| #DFD8E4 on #2D1B4E | 10.94:1 | AAA | Lc -81.2 |
| #2D1B4E on #B79CE0 | 6.42:1 | AA | Lc 53.1 |
| #DFD8E4 on #5B4971 | 5.72:1 | AA | Lc -68.8 |
Color vision
No pair of colors comes within ΔE 0.06 of another under protanopia, deuteranopia, tritanopia or achromatopsia.
Protanopia
Deuteranopia
Tritanopia
Achromatopsia
Use it in code
Install these colors as Tailwind CSS v4 theme colors with shadcn: npx shadcn@latest add https://getcolors.so/r/palette/2d1b4e-5b4971-7a9e7e-b79ce0-dfd8e4.json.
Make it your own
Edit the colors, build a full light and dark color system from them, or see them on real UI.