Purple color — #800080
Purple is a CSS named color with the HEX code #800080, RGB value rgb(128, 0, 128) and HSL value hsl(300, 100%, 25%).
Pink
Purple
#800080
Color codes
- HEX
- #800080
- RGB
- rgb(128, 0, 128)
- HSL
- hsl(300, 100%, 25%)
- HSV
- hsv(300, 100%, 50%)
- CMYK
- cmyk(0%, 100%, 0%, 50%)
- OKLCH
- oklch(42.09% 0.1935 328.36)
CSS usage
In CSS you can use the keyword or any equivalent value:
.element {
color: purple;
background-color: #800080;
border-color: rgb(128, 0, 128);
outline-color: hsl(300, 100%, 25%);
}Shades
Tints
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Contrast ratio
Contrast ratio against white and black text, per WCAG 2.2.
Purple — On white9.41:1 · AAA
Purple — On black2.22:1 · Fail