Shades of Purple: Color Names & Hex Codes

There are 8 CSS named colors in the purple range, from the lightest, Lavender, to the darkest, Indigo. Each one below has its exact hex and RGB code, the text color that reads best on it, and a full page with palettes and matching colors.

Purple Color Chart

Ordered from lightest to darkest by relative luminance. Click a name for its full color page.

#E6E6FA

Lavender

rgb(230, 230, 250) · lavender

Very pale blue-violet, close to white.

#DDA0DD

Plum

rgb(221, 160, 221) · plum

Pale, muted purple.

#EE82EE

Violet

rgb(238, 130, 238) · violet

Light, bright pinkish purple.

#DA70D6

Orchid

rgb(218, 112, 214) · orchid

Light purple-pink, like the orchid flower.

#9370DB

Medium Purple

rgb(147, 112, 219) · mediumpurple

Soft, mid-tone purple with a blue lean.

#663399

Rebecca Purple

rgb(102, 51, 153) · rebeccapurple

Strong, medium-dark purple added to CSS in 2014.

#800080

Purple

rgb(128, 0, 128) · purple

CSS purple: half-strength red and blue, no green.

#4B0082

Indigo

rgb(75, 0, 130) · indigo

Very dark blue-leaning violet.

Light, Mid-tone and Dark Shades of Purple

Light shades of purple

Pale enough to work as backgrounds. Black text has the higher contrast on all 3 of them. Lavender, Plum and Violet.

Mid-tone shades of purple

Mid-tones for accents, buttons and illustrations. Check the table below before choosing a text color. Black text has the higher contrast on all 2 of them. Orchid and Medium Purple.

Dark shades of purple

Deep tones for headers, buttons and bold brand color. White text has the higher contrast on all 3 of them. Rebecca Purple, Purple and Indigo.

Purple Hex Codes and Contrast

Contrast ratios follow WCAG 2.2: 4.5:1 is the minimum for body text, 3:1 for large text.

Purple-range named colors in CSS Color 4
ColorHEXRGBHSLOn blackOn whiteBest text
#E6E6FArgb(230, 230, 250)hsl(240, 67%, 94%)17.06:11.23:1Black
#DDA0DDrgb(221, 160, 221)hsl(300, 47%, 75%)10.15:12.07:1Black
#EE82EErgb(238, 130, 238)hsl(300, 76%, 72%)9.06:12.32:1Black
#DA70D6rgb(218, 112, 214)hsl(302, 59%, 65%)7.27:12.89:1Black
#9370DBrgb(147, 112, 219)hsl(260, 60%, 65%)5.58:13.76:1Black
#663399rgb(102, 51, 153)hsl(270, 50%, 40%)2.5:18.41:1White
#800080rgb(128, 0, 128)hsl(300, 100%, 25%)2.23:19.42:1White
#4B0082rgb(75, 0, 130)hsl(275, 100%, 25%)1.62:112.95:1White

Shades of Purple FAQ

What are the shades of purple in CSS?

CSS Color 4 does not group its named colors into families, but 8 of them fall in the purple range. From lightest to darkest: Lavender (#E6E6FA), Plum (#DDA0DD), Violet (#EE82EE), Orchid (#DA70D6), Medium Purple (#9370DB), Rebecca Purple (#663399), Purple (#800080) and Indigo (#4B0082).

What is the hex code for purple?

The CSS named color purple is #800080, which is RGB(128, 0, 128). The other shades on this page each have their own code.

Which shade of purple can I use for text on a white background?

Rebecca Purple, Purple and Indigo are the only ones of these shades with at least 4.5:1 contrast on white, the WCAG AA minimum for body text. Indigo reaches 12.95:1.

Are lilac and mauve CSS colors?

No. Lilac and mauve are common names, not CSS named colors, so neither has a standard hex code. Plum (#DDA0DD), Orchid (#DA70D6) and Lavender (#E6E6FA) are nearby CSS colors.

Sources: W3C CSS Color Module Level 4 (named colors and values); WCAG 2.2 (relative luminance and contrast formula).