blueviolet (#8A2BE2)

blueviolet is a CSS named color with the hex code #8A2BE2, rgb(138, 43, 226). It is a medium, saturated purple.

blueviolet#8A2BE2
Keywordblueviolet
HEX#8a2be2
RGBrgb(138, 43, 226)
HSLhsl(271, 76%, 53%)

Full #8A2BE2 details: palettes, shades, color-blind view →

Description

Blueviolet (read as "blue violet") has a hue of 271°, saturation 76% and lightness 53%, which places it in the purple family. Its strongest channel is blue (226).

Using blueviolet in CSS

.title { color: blueviolet; }
.box   { background: blueviolet; border-color: #8a2be2; }
.soft  { background: rgb(138 43 226 / 20%); }   /* blueviolet at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
darkviolet#9400d3148, 0, 2114
darkorchid#9932cc153, 50, 2044.4
slateblue#6a5acd106, 90, 20510.7
rebeccapurple#663399102, 51, 15311.3
blue#0000ff0, 0, 25512
mediumslateblue#7b68ee123, 104, 23813.7
mediumorchid#ba55d3186, 85, 21113.9
darkmagenta#8b008b139, 0, 13914.1

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 5.96:1; with black text: 3.52:1. White body text on blueviolet meets WCAG AA.

Frequently asked questions

What is the hex code for blueviolet?
#8A2BE2.
What colors are similar to blueviolet?
darkviolet (#9400d3), darkorchid (#9932cc), slateblue (#6a5acd).