AfoliOpen Afoli →

Purple color #800080

Purple is one of the CSS named colors (keyword purple) with the hex code #800080 — RGB 128, 0, 128, HSL 300°, 100%, 25%.

Open in Afoli Colour tools →

#800080Purple

Color codes

HEX
#800080
RGB
rgb(128, 0, 128)
HSL
hsl(300, 100%, 25%)
CMYK
0%, 100%, 0%, 50%
OKLCH
oklch(42.1% 0.193 328.4)
CSS keyword
purple

Tints and shades

#FFEFFE#FFC3FC#FF8FFC#E573E1#C959C6#AD3EAC#922092#760076#550055#360036#1A001A

Color harmonies

Complementary
#800080#005E23
Analogous
#5E21A6#800080#8F004C
Triadic
#800080#614A00#005862
Split complementary
#800080#495400#005B4E
Tetradic
#800080#753D00#005E23#00537A

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Purple text on white9.42 : 190AAA — any text
Purple text on black2.23 : 1-13Fails for text
White text on Purple9.42 : 1-94AAA — any text
Black text on Purple2.23 : 114Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Purple?

Purple has the hex code #800080, which is RGB 128, 0, 128 and HSL 300°, 100%, 25%.

Which text color reads best on Purple?

White text: contrast 9.42 : 1 (black text: 2.23 : 1).

Which colors go well with Purple?

Its complementary color is #005E23; analogous colors are #5E21A6 and #8F004C; a triadic set adds #614A00 and #005862.

Similar colors

Sources and licences

Updated November 21, 2026