Dark Violet Color Code (#9400d3)

Dark Violet is #9400d3 in hex and rgb(148, 0, 211) — a medium purple. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Dark Violet
#9400d3
CSS namedarkviolet
Hex#9400d3
RGBrgb(148, 0, 211)
HSLhsl(282 100% 41%)
HWBhwb(282 0% 17%)
CMYK30%, 100%, 0%, 17%

Tints and shades

Color harmonies

About Dark Violet

Dark Violet (darkviolet) is a medium, vivid purple with the hex code #9400d3, or rgb(148, 0, 211). In HSL it sits at a hue of 282°, 100% saturation and 41% lightness. It is one of the 148 named colors every browser understands, so you can write color: darkviolet; instead of the hex value.

Using Dark Violet for text and backgrounds

PairingContrast ratioWCAG
Dark Violet text on white6.56 : 1AA
Dark Violet text on black3.20 : 1AA large text only

On a dark violet background, use white text (6.56 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: darkviolet;               /* or #9400d3 */
  background-color: #9400d3;
  border: 1px solid rgb(148 0 211 / 50%);
}

Similar named colors

Blue Violet (#8a2be2), Dark Orchid (#9932cc), Dark Magenta (#8b008b), Purple (#800080), Rebecca Purple (#663399), Medium Orchid (#ba55d3).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for dark violet?
#9400d3 — that is rgb(148, 0, 211) and hsl(282, 100%, 41%). In CSS you can also just write darkviolet.
Is dark violet text readable on white?
Its contrast ratio on white is 6.56 : 1, which passes WCAG AA for normal text.
What colors go well with dark violet?
Its complementary color is #3fd100; analogous colors #2a00d1 and #d100a7 sit next to it on the color wheel.