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%.
#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
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Purple text on white | 9.42 : 1 | 90 | AAA — any text |
| Purple text on black | 2.23 : 1 | -13 | Fails for text |
| White text on Purple | 9.42 : 1 | -94 | AAA — any text |
| Black text on Purple | 2.23 : 1 | 14 | Fails for 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
- Dark Magenta #8B008B
- Darkish Purple #751973
- Rich Purple #720058
- Warm Purple #952E8F
- Barney Purple #A00498
- Red Violet #9E0168
- Rebecca Purple #663399
- Grape #6C3461
- Red Purple #820747
- Dark Fuchsia #9D0759
Sources and licences
- CSS Color Module Level 4 — named colors (W3C Software and Document License)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)