Description
Violet has a hue of 300°, saturation 76% and lightness 72%, which places it in the pink & magenta family. Its strongest channel is red (238).
Using violet in CSS
.title { color: violet; }
.box { background: violet; border-color: #ee82ee; }
.soft { background: rgb(238 130 238 / 20%); } /* violet 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 |
|---|---|---|---|
| orchid | #da70d6 | 218, 112, 214 | 5.6 |
| plum | #dda0dd | 221, 160, 221 | 8.7 |
| hotpink | #ff69b4 | 255, 105, 180 | 11.8 |
| fuchsia | #ff00ff | 255, 0, 255 | 12.2 |
| mediumorchid | #ba55d3 | 186, 85, 211 | 14.3 |
| palevioletred | #db7093 | 219, 112, 147 | 17.4 |
| mediumpurple | #9370db | 147, 112, 219 | 17.6 |
| deeppink | #ff1493 | 255, 20, 147 | 19 |
Δ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: 2.32:1; with black text: 9.06:1. Black body text on violet meets WCAG AA; white text does not.