Skip to content

Dark violet

Dark violet is a vivid shade of violet. Hex code #9400D3.

Dark violet#9400D3

Dark violet color codes

  • CSS namedarkviolet
  • HEX#9400D3
  • RGBrgb(148, 0, 211)
  • HSLhsl(282, 100%, 41%)
  • OKLCHoklch(51.5% 0.261 309.8)
HSB and CMYK values
  • HSB / HSVhsb(282, 100%, 83%)
  • CMYKC30 M100 Y0 K17

White text

6.56:1 · passes WCAG AA

Black text

3.19:1 · passes WCAG AA for large text only

Shades of dark violet

A darker shade of dark violet is #520077 (700), and a lighter one is #C46EFC (300).

Colors that go with dark violet

Complementary

Analogous

Triadic

The complementary color of dark violet is #3FD300, close to lime green.

Click a color to copy its hex code.

Colors similar to dark violet

Each compared with dark violet.

About this color

Dark violet in CSS and design

Dark violet is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same dark violet:

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

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) and in HSL hsl(282, 100%, 41%). In CMYK it is about C30 M100 Y0 K17, though printed colors vary with paper and ink.

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.

What is the complementary color of dark violet?

#3FD300, close to lime green. It sits opposite dark violet on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with dark violet?

For strong contrast, pair it with its complementary color #3FD300. For a calmer look, combine it with its analogous neighbors #2A00D3 and #D300A9. The palette generator builds more combinations.