#8A2BE2

BlueViolet — Color Codes & Palette

#8A2BE2  ·  rgb(138, 43, 226)  ·  hsl(271, 76%, 53%)

Color Codes

Format Value
HEX #8A2BE2
RGB rgb(138, 43, 226)
HSL hsl(271, 76%, 53%)

Shades of BlueViolet

#7E1DD7#701AC1#6317AB#561494#49117E#3C0E67#2F0B51#22083A

Tints of BlueViolet

#9743E5#A359E8#AF6FEB#BC86EE#C89CF2#D5B3F5#E1C9F8#EEE0FB

Color Pairings & Harmony

Complementary
#84E22C
Analogous +30°
#E22CDF
Analogous −30°
#2F2CE2
Triadic +120°
#E28A2C
Triadic −120°
#2CE28A

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
5.96:1 — AA pass for normal text
vs. Black (#000000)
3.52:1 — AA pass for large text only

CSS Snippet

.element {
  color: #8A2BE2;
}

.element-bg {
  background-color: #8A2BE2;
  color: #ffffff;
}

.element-border {
  border: 2px solid #8A2BE2;
}

About BlueViolet

BlueViolet is a medium color with high saturation, defined by the hex code #8A2BE2. Its exact color model values are rgb(138, 43, 226) in RGB and hsl(271, 76%, 53%) in HSL (hue 271°, saturation 76%, lightness 53%). On a white background the contrast ratio is 5.96:1 — AA pass for normal text, and on black it is 3.52:1 — AA pass for large text only. Use BlueViolet for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of BlueViolet?
The RGB value of BlueViolet (#8A2BE2) is rgb(138, 43, 226). Red = rgb(138, 43, 226), representing the amounts of red, green, and blue light on a 0–255 scale.
Is BlueViolet accessible on a white background?
The contrast ratio of BlueViolet on white (#FFFFFF) is 5.96:1 — AA pass for normal text. On black (#000000) the contrast ratio is 3.52:1 — AA pass for large text only. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with BlueViolet?
Based on color theory, BlueViolet (hsl(271, 76%, 53%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.