darkviolet (#9400D3)

darkviolet is a CSS named color with the hex code #9400D3, rgb(148, 0, 211). It is a medium-dark, vivid magenta.

darkviolet#9400D3
Keyworddarkviolet
HEX#9400d3
RGBrgb(148, 0, 211)
HSLhsl(282, 100%, 41%)

Full #9400D3 details: palettes, shades, color-blind view →

Description

Darkviolet (read as "dark violet") has a hue of 282°, saturation 100% and lightness 41%, which places it in the purple family. The "dark" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080).

Using darkviolet in CSS

.title { color: darkviolet; }
.box   { background: darkviolet; border-color: #9400d3; }
.soft  { background: rgb(148 0 211 / 20%); }   /* darkviolet at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
blueviolet#8a2be2138, 43, 2264
darkorchid#9932cc153, 50, 2044.4
rebeccapurple#663399102, 51, 15310.4
darkmagenta#8b008b139, 0, 13910.9
purple#800080128, 0, 12812.7
blue#0000ff0, 0, 25512.8
slateblue#6a5acd106, 90, 20514
mediumorchid#ba55d3186, 85, 21115

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 6.56:1; with black text: 3.20:1. White body text on darkviolet meets WCAG AA.

Frequently asked questions

What is the hex code for darkviolet?
#9400D3.
What colors are similar to darkviolet?
blueviolet (#8a2be2), darkorchid (#9932cc), rebeccapurple (#663399).