Swatchproof

Violet #EE82EE

Violet is one of the named colours in CSS, written violet. Black text reaches 9.06:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordviolet
HEX#EE82EE
RGBrgb(238 130 238)
HSLhsl(300 76% 72%)
OKLCHoklch(76.2% 0.186 327.2)
White text2.32:1 · body text AA Fail
Black text9.06:1 · body text AA Pass

Colours that go with Violet

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Eosine Pink (#F37F94), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Violet itself.

ColourHEXContrast with VioletBody text AA
Black#1113148.04:1Pass
Dusky Madder Violet#4E1D4C5.65:1Pass
Red Violet#59256A4.78:1Pass
Deep Lyons Blue#1C42864.17:1Fail
Hay's Russet#7933273.91:1Fail
Blackish Olive#42533E3.57:1Fail
Dark Slate Purple#7043573.45:1Fail
Brick Red#A842222.61:1Fail
Diamine Green#1A74442.50:1Fail
Dark Soft Violet#66629C2.39:1Fail
Burnt Sienna#AE52242.25:1Fail
Pale Lemon Yellow#FFEFAE2.01:1Fail
Aconite Violet#A36AA51.76:1Fail
Seashell Pink#FDD4BD1.69:1Fail
Light Mauve#9A72AA1.69:1Fail
Raw Sienna#BB71251.65:1Fail
Pale King's Blue#A7D4E41.45:1Fail
Yellow Green#AFD4721.38:1Fail
Khaki#BC892B1.34:1Fail
Orange Yellow#FCB3151.28:1Fail
Calamine BLue#78CDD01.26:1Fail
Neutral Gray#B6BFC11.24:1Fail
Citrine#B09F361.15:1Fail
Grayish Lavender - A#B5B1D81.13:1Fail
Pyrite Yellow#CAB3561.11:1Fail
Ecru#C2AE931.08:1Fail
Citron Yellow#B2B73E1.07:1Fail
Grayish Lavender - B#C0A9B31.06:1Fail

Palettes with Eosine Pink

Shades and tints of Violet

Nine lightness steps in OKLCH that keep the hue of Violet. Chroma is reduced only where sRGB cannot show it.

:root {
  --violet-100: #FFEFFE;
  --violet-200: #FFD5FE;
  --violet-300: #FFACFE;
  --violet-400: #ED81ED;
  --violet-500: #CB62CC;
  --violet-600: #A73FA8;
  --violet-700: #871B89;
  --violet-800: #620064;
  --violet-900: #3C003D;
}

Text that keeps Violet on screen

Text #3C003D on #EE82EE reaches 7.20:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours