Skip to content

Dark violet

Dark violet is a medium, vivid color from the purple family. Hex code #9400D3.

Dark violet#9400D3

Color codes

  • CSS namedarkviolet
  • HEX#9400D3
  • RGBrgb(148 0 211)
  • HSLhsl(282 100% 41%)
  • HSB / HSVhsb(282, 100%, 83%)
  • OKLCHoklch(51.5% 0.261 309.8)
  • CMYKcmyk(30%, 100%, 0%, 17%)

White text

6.56:1 · passes WCAG AA

Black text

3.19:1 · passes WCAG AA for large text only

Shades

50#F6EEFE
100#E5C6FE
200#D39EFA
300#C46EFC
400#B039F2
500#9402D3
600#7208A2
700#520077
800#33014D

Complementary

#9400D3
#4C7600

Analogous

#9400D3
#5838F6
#AE178D

Triadic

#9400D3
#905A00
#1A7672

About this color

Dark violet in CSS and design

Dark violet is a medium, vivid color from the purple family. Dark violet is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: darkviolet;
color: #9400D3;
color: rgb(148 0 211);
color: hsl(282 100% 41%);

For text on dark violet, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for dark violet?

#9400D3. In CSS you can also use the keyword darkviolet, which works in every browser.

What is dark violet in RGB and HSL?

In RGB it is rgb(148 0 211), in HSL hsl(282 100% 41%). For print, cmyk(30%, 100%, 0%, 17%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on dark violet?

White text works better: it has a contrast ratio of 6.56:1 and passes WCAG AA. Black text reaches 3.19:1.

Which colors go with dark violet?

Its complementary color is #4C7600, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #5838F6 and #AE178D. The palette generator builds more combinations.