Blue Violet — #8a2be2

Blue Violet (#8a2be2) is a medium, vivid purple. It is a CSS named color, so you can use it in stylesheets as color: blueviolet as well as by its hex code. In RGB it is rgb(138, 43, 226); in HSL, hsl(271, 76%, 53%).

#8a2be2

Color conversions

Hex#8a2be2
CSS nameblueviolet
RGBrgb(138, 43, 226)
HSLhsl(271, 76%, 53%)
CMYK39%, 81%, 0%, 11%
CSS examplecolor: #8a2be2; background-color: rgb(138, 43, 226);

Tints and shades of #8a2be2

The hue stepped through seven lightness levels, each matched to the closest named or web-safe color — useful for backgrounds, borders, text and hover states that all belong to one family. Click any swatch for its full breakdown.

Color schemes with #8a2be2

Complementary — maximum contrast, from opposite sides of the color wheel:

Analogous — neighbours on the wheel, naturally harmonious:

Triadic — three colors evenly spaced for balanced variety:

Tetradic — four colors at 90° intervals:

Text contrast and accessibility

On a #8a2be2 background, white text gives the better contrast. WCAG requires 4.5:1 for normal text and 3:1 for large text (AA), or 7:1 and 4.5:1 for AAA.

Text colorContrast ratioNormal textLarge text
White text (#ffffff)5.96:1AAAAA
Black text (#000000)3.52:1FailsAA

Similar named colors

The CSS named colors closest to #8a2be2: