Description
Purple has a hue of 300°, saturation 100% and lightness 25%, which places it in the pink & magenta family. Its strongest channel is red (128).
Using purple in CSS
.title { color: purple; }
.box { background: purple; border-color: #800080; }
.soft { background: rgb(128 0 128 / 20%); } /* purple 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 |
|---|---|---|---|
| darkmagenta | #8b008b | 139, 0, 139 | 2.4 |
| rebeccapurple | #663399 | 102, 51, 153 | 9.6 |
| indigo | #4b0082 | 75, 0, 130 | 10.9 |
| darkviolet | #9400d3 | 148, 0, 211 | 12.7 |
| darkorchid | #9932cc | 153, 50, 204 | 13.9 |
| blueviolet | #8a2be2 | 138, 43, 226 | 15.8 |
| darkslateblue | #483d8b | 72, 61, 139 | 15.8 |
| mediumvioletred | #c71585 | 199, 21, 133 | 16 |
Δ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: 9.42:1; with black text: 2.23:1. White body text on purple meets WCAG AA.