Swatchproof

Dark violet #9400D3

Dark violet is one of the named colours in CSS, written darkviolet. White text reaches 6.56:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keyworddarkviolet
HEX#9400D3
RGBrgb(148 0 211)
HSLhsl(282 100% 41%)
OKLCHoklch(51.5% 0.261 309.8)
White text6.56:1 · body text AA Pass
Black text3.20:1 · body text AA Fail

Colours that go with Dark violet

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Blue Violet (#6450A1), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Dark violet itself.

ColourHEXContrast with Dark violetBody text AA
Nile Blue#BCE4E54.80:1Pass
Pale King's Blue#A7D4E44.12:1Fail
Olive Buff#C1C4943.62:1Fail
Pinkish Cinnamon#EEB4803.59:1Fail
Cameo Pink#E0B3B63.53:1Fail
Venice Green#62C6BF3.23:1Fail
Citron Yellow#B2B73E3.04:1Fail
Eupatorium Purple#BF58921.57:1Fail
Spectrum Red#E31F261.40:1Fail
Hay's Russet#7933271.38:1Fail
Brick Red#A842221.08:1Fail

Palettes with Blue Violet

Shades and tints of Dark violet

Nine lightness steps in OKLCH that keep the hue of Dark violet. Chroma is reduced only where sRGB cannot show it.

:root {
  --darkviolet-100: #F9F2FF;
  --darkviolet-200: #EFDCFF;
  --darkviolet-300: #E2BCFF;
  --darkviolet-400: #D191FF;
  --darkviolet-500: #BF56FF;
  --darkviolet-600: #9F1FDF;
  --darkviolet-700: #7B00B0;
  --darkviolet-800: #56007D;
  --darkviolet-900: #34004D;
}

Text that keeps Dark violet on screen

Text #9400D3 on #F9F2FF reaches 5.99:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours