Blue Violet color: hex code #8A2BE2
Blue Violet has the hex code #8A2BE2. It is a moderate violet.
In the RGB color model it is made of 54.1% red, 16.9% green and 88.6% blue (138, 43, 226).
Its hue angle is 271°, with 76% saturation and 53% lightness. For print, the CMYK equivalent is 39% cyan, 81% magenta, 0% yellow and 11% black.
You can use it in CSS with the keyword blueviolet.
White text is the more readable choice on this background (contrast 5.96:1).
Blue Violet (#8A2BE2) color codes
| HEX | #8A2BE2 | |
|---|---|---|
| RGB | rgb(138, 43, 226) | |
| RGB percent | rgb(54.1%, 16.9%, 88.6%) | |
| HSL | hsl(271, 76%, 53%) | |
| HSV / HSB | hsv(271, 81%, 89%) | |
| CMYK | cmyk(39%, 81%, 0%, 11%) | |
| CIE LAB | lab(42.19, 69.84, -74.76) | |
| CIE LCH | lch(42.19, 102.31, 313.05) | |
| CIE XYZ | xyz(25.069, 12.622, 73.052) | |
| Decimal | 9055202 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Blue Violet, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #8A2BE2 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.52:1 | Fail | Fail | Pass |
| Sample text | 5.96:1 | Pass | Fail | Pass |
| #8A2BE2 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.96:1 | Pass | Fail | Pass |
| Sample text | 3.52:1 | Fail | Fail | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #8A2BE2 looks to people with the most common types of color vision deficiency.
#0063e7Protanopia
no red cones#0063dfDeuteranopia
no green cones#765f89Tritanopia
no blue cones#646464Achromatopsia
no color vision
CSS examples
.background { background-color: #8a2be2; }
.text { color: #8a2be2; }
.border { border: 2px solid #8a2be2; }
.transparent { background-color: rgb(138 43 226 / 50%); }
.gradient { background: linear-gradient(to right, #8a2be2, #e22bde); }
Similar colors
#9601f4Cosmic Heart#7736d9Hokkaido Lavender#8822ccLilac Spring#8f00ffViolet#8800ffPurple Climax#9632ceDreamscape Purple#9400d3Dark Violet#7f01fePoisoning Purple
See #8A2BE2 on its hex code page
Questions
- What color is #8A2BE2?
- #8A2BE2 is a moderate violet known as Blue Violet. It belongs to the purple family of colors.
- What is the RGB value of Blue Violet?
- The RGB value is 138, 43, 226: 138 red, 43 green and 226 blue on a 0 to 255 scale.
- What is the complementary color of Blue Violet?
- The complementary color is #83E22B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #8A2BE2?
- White text. Black text has a contrast ratio of 3.52:1 and white text 5.96:1. WCAG asks for at least 4.5:1 for normal text.