Purple Color Code: HEX, RGB, 30 Shades of Purple and Palettes

Purple color code #800080 with purple swatches

The purple color code is #800080, which is RGB 128, 0, 128. That’s the official CSS purple, a deep, medium purple made of equal parts red and blue. In CSS you can simply write purple. Older X11 color lists, still used by some software, define purple as the brighter #A020F0 (RGB 160, 32, 240), which leans toward violet.

This guide covers the HEX, RGB, CMYK and HSL values for both, 30 named shades of purple with their codes, six purple color palettes and quick steps for using purple in Canva, Photoshop and CSS.

Shades marked CSS are official CSS color keywords. The other names use the hex values listed in common color references such as Wikipedia’s color lists. CMYK figures are simple conversions from RGB, so check them against a printed proof before a big print run.

Purple Color Code Values at a Glance

Most designers mean #800080 when they say purple. Reach for X11 purple when you want something brighter and more electric.

Purple color code swatches: CSS purple #800080 and X11 purple #A020F0 with HEX, RGB, CMYK and HSL values
CSS purple (#800080) and X11 purple (#A020F0) side by side.
FormatPurple (CSS)Purple (X11)
HEX#800080#A020F0
RGB128, 0, 128160, 32, 240
CMYK0, 100, 0, 5033, 87, 0, 6
HSL300°, 100%, 25%277°, 87%, 53%
HSV300°, 100%, 50%277°, 87%, 94%
CSSpurple or #800080#A020F0

Which Purple Should You Use?

Purple runs from soft lavender to near-black aubergine. Choose the shade by what it has to do:

  • #800080 (purple) is a classic, balanced purple for headings, buttons and bold brand colors.
  • #663399 (rebeccapurple) is a softer, bluer purple that’s easy on the eyes. It became a CSS color name in 2014 in memory of Rebecca Meyer, the young daughter of CSS expert Eric Meyer.
  • #9370DB (medium purple) and #967BB6 (lavender purple) suit friendly, modern designs.
  • #E6E6FA (lavender), #D8BFD8 (thistle) and #E0B0FF (mauve) make soft, airy backgrounds.
  • #301934 (dark purple) and #614051 (eggplant) are deep enough for text and dark-mode designs.

Purple vs Violet: What’s the Difference?

Purple and violet aren’t quite the same thing. Violet is a real color in the light spectrum, at the short-wavelength end beyond blue. Purple is a mix of red and blue light, so it has no single wavelength of its own. In CSS, violet (#EE82EE) is actually a light, pinkish purple, which surprises a lot of people.

Shades of Purple With Hex Codes

These 30 shades of purple cover the whole family, from pale lavender and lilac to deep indigo and eggplant. Copy any hex code and paste it into your design tool.

Chart of 30 shades of purple with hex codes, from lavender and lilac to indigo and dark purple
30 shades of purple with their hex and RGB codes.
ShadeHEXRGBCMYK
Purple (CSS)#800080128, 0, 1280, 100, 0, 50
Purple (X11)#A020F0160, 32, 24033, 87, 0, 6
Rebecca purple#663399102, 51, 15333, 67, 0, 40
Indigo#4B008275, 0, 13042, 100, 0, 49
Dark violet#9400D3148, 0, 21130, 100, 0, 17
Dark orchid#9932CC153, 50, 20425, 75, 0, 20
Dark magenta#8B008B139, 0, 1390, 100, 0, 45
Medium purple#9370DB147, 112, 21933, 49, 0, 14
Blue violet#8A2BE2138, 43, 22639, 81, 0, 11
Medium orchid#BA55D3186, 85, 21112, 60, 0, 17
Orchid#DA70D6218, 112, 2140, 49, 2, 15
Violet#EE82EE238, 130, 2380, 45, 0, 7
Plum#DDA0DD221, 160, 2210, 28, 0, 13
Thistle#D8BFD8216, 191, 2160, 12, 0, 15
Lavender (CSS)#E6E6FA230, 230, 2508, 8, 0, 2
Lavender (floral)#B57EDC181, 126, 22018, 43, 0, 14
Lavender purple#967BB6150, 123, 18218, 32, 0, 29
Amethyst#9966CC153, 102, 20425, 50, 0, 20
Grape#6F2DA8111, 45, 16834, 73, 0, 34
Electric purple#BF00FF191, 0, 25525, 100, 0, 0
Heliotrope#DF73FF223, 115, 25513, 55, 0, 0
Mauve#E0B0FF224, 176, 25512, 31, 0, 0
Lilac#C8A2C8200, 162, 2000, 19, 0, 22
Byzantium#702963112, 41, 990, 63, 12, 56
Eggplant#61405197, 64, 810, 34, 16, 62
Palatinate purple#682860104, 40, 960, 62, 8, 59
Mulberry#C54B8C197, 75, 1400, 62, 29, 23
Pearly purple#B768A2183, 104, 1620, 43, 11, 28
Mardi Gras#880085136, 0, 1330, 100, 2, 47
Dark purple#30193448, 25, 528, 52, 0, 80

Fourteen of these are official CSS color names: purple, rebeccapurple, indigo, darkviolet, darkorchid, darkmagenta, mediumpurple, blueviolet, mediumorchid, orchid, violet, plum, thistle and lavender. Two of them look nothing like their names suggest. CSS plum (#DDA0DD) is a pale pink-purple rather than the dark fruit, and CSS lavender (#E6E6FA) is almost white. For the flower’s color, use lavender (floral) #B57EDC.

Dark Purple Color Codes

For deep purples, try dark purple #301934, indigo #4B0082, eggplant #614051, palatinate purple #682860 or byzantium #702963. They work as rich backgrounds behind gold or white text, and as text colors on light backgrounds.

Light Purple Color Codes

For light purples, use lavender #E6E6FA, thistle #D8BFD8, mauve #E0B0FF, lilac #C8A2C8 or plum #DDA0DD. These sit in pastel territory, so our pastel color codes list has more shades that pair with them.

Purple Color Palettes (With Hex Codes)

Purple works with warm golds, cool teals and soft pinks, so it’s easy to build a palette around. Here are six purple color palettes ready to copy:

Six purple color palettes with hex codes: royal purple and gold, lavender pastel, purple and yellow, purple and teal, plum and blush, electric neon
Six purple color palettes you can copy.
PaletteHex codesGood for
Royal purple and gold#301934, #663399, #D4AF37, #F7E7CE, #FFFFFFLuxury brands, invitations and awards
Lavender pastel#E6E6FA, #D8BFD8, #C8A2C8, #B57EDC, #FDFBFFSpas, baby showers and spring designs
Purple and yellow#4B0082, #800080, #FFDB58, #FFFACD, #FFFFFFBold posters, sports and kids’ brands
Purple and teal#301934, #6F2DA8, #2A9D8F, #A8DADC, #F1FAEETech, apps and modern websites
Plum and blush#614051, #702963, #C54B8C, #F4C2D7, #FFF0F5Beauty, fashion and wine labels
Electric neon#0F0A1E, #2D1B69, #8A2BE2, #BF00FF, #E0B0FFGaming, music and stream graphics

Purple and gold is one of the oldest luxury pairings, and our luxury color palettes and gold color code guide have more combinations like it.

What Colors Go With Purple?

  • Yellow and gold: yellow sits opposite purple on the color wheel, so it gives the strongest contrast. Our yellow color code guide lists 30 yellows to try.
  • Teal and turquoise: a cool, fresh pairing for tech and modern brands. See our turquoise guide for codes.
  • Pink and blush: soft and romantic, popular for beauty and weddings. Our feminine colors guide has palettes built on this mix.
  • Gray, white and black: neutral partners that let purple be the star.
  • Sage green: lavender and sage is a calm, garden-inspired combination.

How to Use the Purple Color Code in Canva, Photoshop and CSS

  1. Canva: select your text or shape, click the color tile on the toolbar, choose the plus icon to add a new color and paste #800080 into the hex field.
  2. Photoshop: click the foreground color swatch, type 800080 into the # field of the Color Picker and select OK.
  3. CSS: write color: #800080; or color: purple;. For the softer shade, use color: rebeccapurple;.
  4. Brand kits: save each purple with its RGB and CMYK values so your website, social posts and print all match.

Make Sure Purple Text Is Readable

Deep purples make very readable text. Light purples don’t. Accessibility guidelines (WCAG) ask for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Here’s how common purple pairings score:

Purple text contrast examples: purple on white passes, lavender on white is for large text only, gold on dark purple and dark purple on lavender pass
Dark purples pass on white. Light purples need dark text.
Text colorBackgroundContrast ratioNormal text
#800080 purple#FFFFFF white9.4:1Passes
#A020F0 X11 purple#FFFFFF white5.3:1Passes
#B57EDC lavender#FFFFFF white3:1Large text only
#FFFFFF white#9370DB medium purple3.8:1Large text only
#D4AF37 metallic gold#301934 dark purple7.6:1Passes
#301934 dark purple#E6E6FA lavender13:1Passes

The takeaway: dark and medium purples are safe on white. Light purples need dark text, and white text on medium purple only works at large sizes, like big headlines.

What Does the Color Purple Mean?

For centuries, purple dye was rare and expensive. Tyrian purple was made from sea snails, so only the very rich could afford it, and purple became tied to royalty, power and wealth. Today it also suggests creativity, imagination and a touch of mystery. Light purples like lavender feel calm and gentle, while bright purples feel playful and energetic. That range is why purple shows up in beauty, wellness and tech branding alike.

Want more color codes? Our brown color code and hot pink guides include shades that work next to purple.

Frequently Asked Questions

What is the hex code for purple?

The standard hex code for purple is #800080 (RGB 128, 0, 128), which is also the CSS color named purple. A brighter X11 purple, #A020F0, is used by some older software.

What is the RGB code for purple?

CSS purple is RGB 128, 0, 128. X11 purple is RGB 160, 32, 240.

What is the CMYK code for purple?

A standard conversion gives CMYK 0, 100, 0, 50 for #800080. Bright screen purples often look duller in print, so check a proof before a large run.

What is the hex code for dark purple?

Dark purple is #301934 (RGB 48, 25, 52). Indigo #4B0082 and eggplant #614051 are other popular deep purples.

What is the hex code for lavender?

CSS lavender is #E6E6FA, a very pale purple. For the color of the flower, use lavender (floral) #B57EDC. Lilac #C8A2C8 is another soft option.

What two colors make purple?

Red and blue. In paint, mix red and blue, adding more blue for a cooler purple. On screen, purple is red plus blue light, as in RGB 128, 0, 128.