Swatchproof

Blue violet #8A2BE2

Blue violet is one of the named colours in CSS, written blueviolet. White text reaches 5.96:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordblueviolet
HEX#8A2BE2
RGBrgb(138 43 226)
HSLhsl(271 76% 53%)
OKLCHoklch(53.4% 0.250 301.4)
White text5.96:1 · body text AA Pass
Black text3.52:1 · body text AA Fail

Colours that go with Blue violet

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

ColourHEXContrast with Blue violetBody text AA
Nile Blue#BCE4E54.36:1Fail
Pale King's Blue#A7D4E43.74:1Fail
Olive Buff#C1C4943.29:1Fail
Pinkish Cinnamon#EEB4803.26:1Fail
Cameo Pink#E0B3B63.20:1Fail
Venice Green#62C6BF2.94:1Fail
Citron Yellow#B2B73E2.76:1Fail
Hay's Russet#7933271.52:1Fail
Eupatorium Purple#BF58921.43:1Fail
Spectrum Red#E31F261.27:1Fail
Brick Red#A842221.02:1Fail

Palettes with Blue Violet

Shades and tints of Blue violet

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

:root {
  --blueviolet-100: #F7F3FF;
  --blueviolet-200: #EADEFF;
  --blueviolet-300: #D8C1FF;
  --blueviolet-400: #C299FF;
  --blueviolet-500: #AC67FF;
  --blueviolet-600: #8F32E8;
  --blueviolet-700: #7000C0;
  --blueviolet-800: #4E0088;
  --blueviolet-900: #2F0055;
}

Text that keeps Blue violet on screen

Text #8A2BE2 on #F7F3FF reaches 5.45:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours