About #8A2BE2
#8A2BE2 is a medium, saturated purple with a hue angle of 271°. It belongs to the purple family and reads as a balanced color. In the RGB model blue is the strongest channel at 226 (89%) and green the weakest at 43 (17%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.
- It is the CSS named color blueviolet, so you can write
color: bluevioletinstead of the hex code.
Color conversions
| 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%) |
| CIELAB (D65) | lab(42.2 69.8 -74.8) |
| Decimal | 9055202 |
| Binary | 10001010 00101011 11100010 |
HEX 8A 2B E2 → 138, 43, 226 (each pair is a base-16 number: 8×16 + A = 138)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.
Tints and shades of #8A2BE2
Tints (mixed with white)
Shades (mixed with black)
Tones (mixed with gray)
Contrast and accessibility
| Text on #8A2BE2 | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 5.96:1 | Pass | Pass | Fail | Pass |
| Black text | 3.52:1 | Fail | Pass | Fail | Fail |
Relative luminance is 0.1262 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.
Color blindness simulation
Protanopia#0063e7
Deuteranopia#0063df
Tritanopia#765f89
Achromatopsia#646464
With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 20.5). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.
Similar named colors
| Name | HEX | ΔE 2000 |
|---|---|---|
| blueviolet | #8a2be2 | 0 |
| darkviolet | #9400d3 | 4 |
| darkorchid | #9932cc | 4.4 |
| slateblue | #6a5acd | 10.7 |
CSS
.element {
color: #8a2be2;
background-color: rgb(138, 43, 226);
border: 1px solid hsl(271, 76%, 53%);
box-shadow: 0 2px 8px rgb(138 43 226 / 50%);
}
:root { --brand: #8a2be2; }