purple (#800080)

purple is a CSS named color with the hex code #800080, rgb(128, 0, 128). It is a dark, vivid magenta.

purple#800080
Keywordpurple
HEX#800080
RGBrgb(128, 0, 128)
HSLhsl(300, 100%, 25%)

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

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

ColorHEXRGBΔE 2000
darkmagenta#8b008b139, 0, 1392.4
rebeccapurple#663399102, 51, 1539.6
indigo#4b008275, 0, 13010.9
darkviolet#9400d3148, 0, 21112.7
darkorchid#9932cc153, 50, 20413.9
blueviolet#8a2be2138, 43, 22615.8
darkslateblue#483d8b72, 61, 13915.8
mediumvioletred#c71585199, 21, 13316

Δ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.

Frequently asked questions

What is the hex code for purple?
#800080.
What colors are similar to purple?
darkmagenta (#8b008b), rebeccapurple (#663399), indigo (#4b0082).