Purple #800080
Purple is one of the named colours in CSS, written purple. White text reaches 9.42:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | purple |
|---|---|
| HEX | #800080 |
| RGB | rgb(128 0 128) |
| HSL | hsl(300 100% 25%) |
| OKLCH | oklch(42.1% 0.193 328.4) |
| White text | 9.42:1 · body text AA Pass |
| Black text | 2.23:1 · body text AA Fail |
Colours that go with Purple
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Red Violet (#59256A), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Purple itself.
| Colour | HEX | Contrast with Purple | Body text AA |
|---|---|---|---|
| Orange Yellow | #FCB315 | 5.20:1 | Pass |
| Isabella Color | #C5A56E | 4.03:1 | Fail |
| Eosine Pink | #F37F94 | 3.71:1 | Fail |
| Cinnamon Rufous | #C27544 | 2.66:1 | Fail |
| Dull Viridian Green | #009465 | 2.43:1 | Fail |
| Light Mauve | #9A72AA | 2.40:1 | Fail |
| Deep Violet / Plumbeous | #70727C | 1.97:1 | Fail |
| Scarlet | #CB2F43 | 1.81:1 | Fail |
| Rosolanc Purple | #B73F74 | 1.78:1 | Fail |
| Antwarp Blue | #007190 | 1.69:1 | Fail |
| Brick Red | #A84222 | 1.56:1 | Fail |
| Veronia Purple | #8C4C62 | 1.49:1 | Fail |
| Violet | #4F4086 | 1.08:1 | Fail |
| Vandyke Red | #82241F | 1.00:1 | Fail |
Palettes with Red Violet
- Combination #4 Isabella Color · Red Violet
- Combination #37 Brick Red · Red Violet
- Combination #134 Eosine Pink · Light Mauve · Red Violet
- Combination #136 Scarlet · Dull Viridian Green · Red Violet
- Combination #170 Rosolanc Purple · Orange Yellow · Red Violet
- Combination #172 Cinnamon Rufous · Antwarp Blue · Red Violet
- Combination #183 Deep Violet / Plumbeous · Veronia Purple · Red Violet
- Combination #316 Vandyke Red · Dull Viridian Green · Violet · Red Violet
Shades and tints of Purple
Nine lightness steps in OKLCH that keep the hue of Purple. Chroma is reduced only where sRGB cannot show it.
- 100#FFF0FE
- 200#FFD5FC
- 300#FFACFB
- 400#F17EEE
- 500#CF5ECC
- 600#AA3AA8
- 700#891389
- 800#630063
- 900#3C003C
:root {
--purple-100: #FFF0FE;
--purple-200: #FFD5FC;
--purple-300: #FFACFB;
--purple-400: #F17EEE;
--purple-500: #CF5ECC;
--purple-600: #AA3AA8;
--purple-700: #891389;
--purple-800: #630063;
--purple-900: #3C003C;
}
Text that keeps Purple on screen
Text #800080 on #FFF0FE reaches 8.59:1, which passes WCAG AA for body text. Check it on a dashboard