#8A2BE2 color (blueviolet)

#8A2BE2 is rgb(138, 43, 226) in RGB and hsl(271, 76%, 53%) in HSL. It is exactly the CSS color blueviolet. Use white text on it (contrast 5.96:1).

#8A2BE2blueviolet
HEX#8A2BE2
RGBrgb(138, 43, 226)
RGB percentrgb(54.1%, 16.9%, 88.6%)
HSLhsl(271, 76%, 53%)
HSV / HSBhsv(271, 81%, 89%)
CMYKcmyk(39%, 81%, 0%, 11%)
CIELAB (D65)lab(42.2 69.8 -74.8)

Edit in the color converter → · Check contrast → · Shades →

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.

Color conversions

HEX#8A2BE2
RGBrgb(138, 43, 226)
RGB percentrgb(54.1%, 16.9%, 88.6%)
HSLhsl(271, 76%, 53%)
HSV / HSBhsv(271, 81%, 89%)
CMYKcmyk(39%, 81%, 0%, 11%)
CIELAB (D65)lab(42.2 69.8 -74.8)
Decimal9055202
Binary10001010 00101011 11100010

HEX 8A 2B E2 → 138, 43, 226 (each pair is a base-16 number: 8×16 + A = 138)

Color harmonies

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 #8A2BE2RatioAA normalAA largeAAA normalAAA large
White text5.96:1PassPassFailPass
Black text3.52:1FailPassFailFail
White text on #8A2BE2
Black text on #8A2BE2
#8A2BE2 text on white
#8A2BE2 text on black

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

NameHEXΔE 2000
blueviolet#8a2be20
darkviolet#9400d34
darkorchid#9932cc4.4
slateblue#6a5acd10.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; }

Frequently asked questions

What color is #8A2BE2?
A medium saturated purple in the purple family. Closest CSS name: blueviolet.
What is #8A2BE2 in RGB?
rgb(138, 43, 226): red 138, green 43, blue 226.
What is the complementary color of #8A2BE2?
#83E22B, found by rotating the hue 180°.