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

#800080
HEX#800080
RGBrgb(128, 0, 128)
HSLhsl(300, 100%, 25%)

Harmonies

Complementary

Analogous

#400080#800040

Triadic

Split complementary

#408000#008040

Tints & shades

#6b006b#750075#800080#8a008a#940094

Accessibility

vs #ffffff9.42:1
vs #0000002.23:1
Suggested text color#ffffff · 9.42:1 · WCAG AAA

Similar named colors

darkmagenta#8b008bindigo#4b0082rebeccapurple#663399mediumvioletred#c71585darkslateblue#483d8bdarkviolet#9400d3

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.

← All named colors