Purple — #800080
The hex code for purple is #800080 — rgb(128, 0, 128), hsl(300, 100%, 25%). Use it in CSS as color: #800080;.
Purple is the color of royalty, mystery, and creativity. Historically the most expensive dye to make, it still carries a premium, luxurious feeling.
Purple color codes — click to copy
#800080rgb(128, 0, 128)hsl(300, 100%, 25%)hsv(300, 100%, 50%)cmyk(0%, 100%, 0%, 50%)Shades, tints & tones of purple
Click any swatch to copy it.
Purple harmonies
Click a swatch to copy it.
Colors that go with purple
| Color | Hex | |
|---|---|---|
| Gold | #FFD700 | |
| White | #FFFFFF | |
| Pink | #FFC0CB | |
| Silver | #C0C0C0 |
Where purple is used
Use purple for beauty, luxury, spirituality, and creative brands. Light purples (lavender, lilac) feel soft and calm; deep purples feel rich and dramatic.
What purple is often associated with: Luxury, creativity, mystery, and wisdom.
Contrast — can you read text on purple?
White text on purple scores 9.42:1
Normal text: AA Pass AAA Pass
Large text (18pt+, or 14pt bold+): AA Pass AAA Pass
Black text scores 2.23:1Normal text: AA Fail AAA Fail
Large text (18pt+, or 14pt bold+): AA Fail AAA Fail
Check any pair in the contrast checker →How purple looks with color blindness
Simulated with the Machado matrices. Click a swatch to copy the simulated color.
Protanopia
Deuteranopia
Tritanopia
This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.
Frequently asked questions
What is the hex code for purple?
The hex code for purple is #800080.
What is the RGB of purple?
The RGB of purple is rgb(128, 0, 128).
What colors go with purple?
Colors that go well with purple include gold (#FFD700), white (#FFFFFF), pink (#FFC0CB). See the pairings table on this page for the full list.
Is purple a good color for a website?
Purple works well as an accent or background — white text on it scores 9.42:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.
What does the color purple mean?
Luxury, creativity, mystery, and wisdom.
Related tools
Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker