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 keyword | blueviolet |
|---|---|
| HEX | #8A2BE2 |
| RGB | rgb(138 43 226) |
| HSL | hsl(271 76% 53%) |
| OKLCH | oklch(53.4% 0.250 301.4) |
| White text | 5.96:1 · body text AA Pass |
| Black text | 3.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.
| Colour | HEX | Contrast with Blue violet | Body text AA |
|---|---|---|---|
| Nile Blue | #BCE4E5 | 4.36:1 | Fail |
| Pale King's Blue | #A7D4E4 | 3.74:1 | Fail |
| Olive Buff | #C1C494 | 3.29:1 | Fail |
| Pinkish Cinnamon | #EEB480 | 3.26:1 | Fail |
| Cameo Pink | #E0B3B6 | 3.20:1 | Fail |
| Venice Green | #62C6BF | 2.94:1 | Fail |
| Citron Yellow | #B2B73E | 2.76:1 | Fail |
| Hay's Russet | #793327 | 1.52:1 | Fail |
| Eupatorium Purple | #BF5892 | 1.43:1 | Fail |
| Spectrum Red | #E31F26 | 1.27:1 | Fail |
| Brick Red | #A84222 | 1.02:1 | Fail |
Palettes with Blue Violet
- Combination #116 Cameo Pink · Blue Violet
- Combination #175 Pinkish Cinnamon · Olive Buff · Blue Violet
- Combination #196 Citron Yellow · Pale King's Blue · Blue Violet
- Combination #322 Spectrum Red · Brick Red · Eupatorium Purple · Blue Violet
- Combination #345 Hay's Russet · Nile Blue · Venice Green · 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.
- 100#F7F3FF
- 200#EADEFF
- 300#D8C1FF
- 400#C299FF
- 500#AC67FF
- 600#8F32E8
- 700#7000C0
- 800#4E0088
- 900#2F0055
: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