Purple Color
CSS purple #800080 — equal red and blue at half intensity.
Purple
#800080
- HEX
- #800080
- RGB
- rgb(128, 0, 128)
- HSL
- hsl(300, 100%, 25.1%)
- HSV
- hsv(300, 100%, 50.2%)
- CMYKapproximation
- cmyk(0%, 100%, 0%, 50%)
- CSS name
- purple
Open purple in the color picker to adjust it or copy other formats.
About purple
#800080 is the CSS named color purple, one of the original 16 HTML colors: red and blue at 128 and no green, which makes it a half-intensity magenta.
CSS has several other purples. rebeccapurple (#663399) was added in CSS Color Level 4 in memory of Rebecca Meyer, the daughter of CSS pioneer Eric Meyer. mediumpurple (#9370DB) and blueviolet (#8A2BE2) are lighter and bluer.
#800080 is the value of the CSS named color purple, defined in the CSS Color specification and identical in every browser.
Other colors called purple
- Rebecca purple (CSS)
#663399A bluer purple added in CSS Color Level 4. - Medium purple (CSS)
#9370DBA lighter, lavender-leaning purple.
Purple shades and tints
Shades mix purple with black, tints mix it with white — useful for hover states, borders and backgrounds. Click a swatch to copy its HEX code.
Colors that go with purple
Color harmonies based on the hue of #800080: its complement on the opposite side of the color wheel, its analogous neighbours and its triadic partners.
Purple contrast and readability
On a purple background, white text reads best (9.41:1). Here is how purple works as a text color:
#800080 on white
9.41:1
Normal text sample
Large text
- AA normal text (4.5:1)Pass
- AA large text (3:1)Pass
- AAA normal text (7:1)Pass
- AAA large text (4.5:1)Pass
#800080 on black
2.22:1
Normal text sample
Large text
- AA normal text (4.5:1)Fail
- AA large text (3:1)Fail
- AAA normal text (7:1)Fail
- AAA large text (4.5:1)Fail
Purple is dark enough for white text and for text on white. Lighter tints make gentle backgrounds for highlights and tags.
Using purple in CSS and HTML
:root {
--color-purple: #800080;
}
.highlight {
background-color: var(--color-purple);
}.banner {
background-color: purple;
color: #ffffff;
}
.label {
color: #800080;
border: 2px solid rgb(128, 0, 128);
}<p style="background-color: #800080; color: #FFFFFF;">
Purple background
</p>Purple color FAQ
- What is the HEX code for purple?
- Purple is #800080 in HEX and rgb(128, 0, 128) in RGB. It is also the CSS named color purple, so color: purple and color: #800080 give exactly the same result.
- What is purple in CMYK?
- Approximately 0%, 100%, 0%, 50% (cyan, magenta, yellow, black). This is the standard profile-free conversion of #800080; for professional print, check the value against your printer's color profile.
- What colors go with purple?
- Its complementary color is #008000, and #400080 and #800040 sit next to it on the color wheel as analogous colors. White, black and gray always work as neutral partners; the matching colors above show more combinations.
- Should I use black or white text on purple?
- White text: it has a contrast ratio of 9.41:1 on #800080, which meets WCAG AAA for normal text.