purple purple #800080
purple is #800080 in hexadecimal, rgb(128, 0, 128) in decimal and hsl(300, 100, 25) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #800080 |
| RGB | rgb(128, 0, 128) |
| HSL | hsl(300, 100%, 25%) |
Harmonies
Complementary
Analogous
#400080#800040Split complementary
#408000#008040Tints & shades
Accessibility
| vs #ffffff | 9.42:1 |
| vs #000000 | 2.23:1 |
| Suggested text color | #ffffff · 9.42:1 · WCAG AAA |
Similar named colors
FAQ
What is the HEX code for purple?
purple is #800080 in hex, rgb(128, 0, 128) in decimal and hsl(300, 100%, 25%) in HSL. In CSS you can write either color: purple; or color: #800080; — they are equivalent.
What colors go with purple?
The complementary #008000 gives the strongest contrast, the analogous pair #400080 / #800040 is the safest, and the triad #808000 / #008080 adds more tension. All three are derived from the 300° hue of #800080.
Does #800080 read better on white or black?
Its contrast is 9.42:1 against white and 2.23:1 against black. Use #ffffff text on it — that gives 9.42:1, which meets WCAG AAA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.