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
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| blueviolet | #8a2be2 | 138, 43, 226 | 4 |
| darkorchid | #9932cc | 153, 50, 204 | 4.4 |
| rebeccapurple | #663399 | 102, 51, 153 | 10.4 |
| darkmagenta | #8b008b | 139, 0, 139 | 10.9 |
| purple | #800080 | 128, 0, 128 | 12.7 |
| blue | #0000ff | 0, 0, 255 | 12.8 |
| slateblue | #6a5acd | 106, 90, 205 | 14 |
| mediumorchid | #ba55d3 | 186, 85, 211 | 15 |
Δ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.