Swatchproof

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 keywordpurple
HEX#800080
RGBrgb(128 0 128)
HSLhsl(300 100% 25%)
OKLCHoklch(42.1% 0.193 328.4)
White text9.42:1 · body text AA Pass
Black text2.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.

ColourHEXContrast with PurpleBody text AA
Orange Yellow#FCB3155.20:1Pass
Isabella Color#C5A56E4.03:1Fail
Eosine Pink#F37F943.71:1Fail
Cinnamon Rufous#C275442.66:1Fail
Dull Viridian Green#0094652.43:1Fail
Light Mauve#9A72AA2.40:1Fail
Deep Violet / Plumbeous#70727C1.97:1Fail
Scarlet#CB2F431.81:1Fail
Rosolanc Purple#B73F741.78:1Fail
Antwarp Blue#0071901.69:1Fail
Brick Red#A842221.56:1Fail
Veronia Purple#8C4C621.49:1Fail
Violet#4F40861.08:1Fail
Vandyke Red#82241F1.00:1Fail

Palettes with 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.

: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

Similar CSS colours