Blue Violet color: hex code #8A2BE2

#8A2BE2 rgb(138, 43, 226)
Shades of purple

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
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%)
CIE LABlab(42.19, 69.84, -74.76)
CIE LCHlch(42.19, 102.31, 313.05)
CIE XYZxyz(25.069, 12.622, 73.052)
Decimal9055202
Short hexNone (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 #8A2BE2RatioAAAAAAA large
Sample text3.52:1FailFailPass
Sample text5.96:1PassFailPass
#8A2BE2 as text onRatioAAAAAAA large
Sample text5.96:1PassFailPass
Sample text3.52:1FailFailPass

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.

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); }
Background
Text color
Border

Similar colors

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.