Purple Color
Purple is a deep, red-leaning violet. Its hex code is #800080, which is rgb(128, 0, 128) in RGB, hsl(300, 100%, 25%) in HSL and cmyk(0%, 100%, 0%, 50%) in CMYK. It is a standard named color in CSS, so you can write it as purple in a stylesheet.
#800080exactly purple
This is the CSS color purple #800080
Use 3 or 6 digits, for example #1E90FF or 19F
For example rgb(30, 144, 255) or 30 144 255
For example hsl(210, 100%, 56%)
For example cmyk(88%, 44%, 0%, 0%)
Recent colors
Colors you pick appear here. They stay on this device.
By the Hex Color Picker Team. Updated
Purple color codes
- Hex:
#800080 - RGB:
rgb(128, 0, 128) - HSL:
hsl(300, 100%, 25%) - CMYK:
cmyk(0%, 100%, 0%, 50%)(standard formula, not a print profile) - CSS name:
purple
About the color purple
In CSS, purple is equal parts red and blue at half strength with no green. That makes it darker and more muted than many people picture when they say purple, which is why the lighter purples have their own names: violet, orchid, plum and lavender.
Where purple works
- Brand accents for creative, premium or imaginative products, where its depth reads as rich rather than loud.
- Headings and buttons on light backgrounds, where it carries white text comfortably.
- Gradients: purple blends into blue for a cool shift or into pink for a warmer one.
Colors that go with purple
These named colors pair well with purple. Click one to see its page where it exists.
The complementary color of purple, directly opposite it on the color wheel, is #008000, closest to green. The analogous neighbors are #400080 and #800040, and the triadic partners are #808000 and #008080. The color palette generator builds a full scheme from any of them.
Named colors nearest to purple are darkmagenta, rebeccapurple, and indigo.
Shades and tints of purple
Keeping the hue and saturation of purple and stepping the lightness from light to dark gives this scale. Use the lighter values for backgrounds and the darker ones for text and borders.
- #FFE5FF
- #FFACFF
- #FF73FF
- #FF39FF
- #FF00FF
- #C600C6
- #8C008C
- #530053
- #190019
Contrast and accessibility
White text on purple has a contrast ratio of 9.4:1, and black text has 2.2:1. The WCAG AA guideline asks for at least 4.5:1 for body text and 3:1 for large text. White text passes on purple.
Pure purple on black is hard to read. On dark backgrounds, switch to a lighter tint.
Common questions
What is the hex code for purple?
The hex code for purple is #800080. In RGB it is rgb(128, 0, 128) and in HSL it is hsl(300, 100%, 25%).
Is CSS purple the same as the purple in most designs?
Usually not. CSS purple is a dark shade, and designers often pick something lighter, such as violet or a custom value, and keep purple for the darker end of the family.
Is white text readable on purple?
Yes. White text on purple has a contrast ratio of 9.4:1, which meets the 4.5:1 WCAG AA guideline for body text.