Skip to content
Color Codes

CSS named color

BlueViolet Color Code

BlueViolet is a medium, vivid purple with the hex code #8A2BE2. In RGB it is rgb(138, 43, 226), in HSL hsl(271, 76%, 53%) and in CMYK cmyk(39%, 81%, 0%, 11%).

BlueViolet
#8A2BE2

Color values

In CSS you can write it as the keyword blueviolet.

White text on BlueViolet has a contrast ratio of 5.96:1 and black text 3.52:1, so white text is the more readable choice.

The closest Tailwind CSS color is Purple 600 (#9333EA).

Use BlueViolet in CSS

.element {
  color: blueviolet;
  background-color: #8a2be2;
  border-color: rgb(138, 43, 226);
}

Tints and shades of BlueViolet

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with BlueViolet

Color-wheel harmonies built from #8A2BE2. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on BlueViolet

Aa
White text
5.96:1
AA
Aa
Black text
3.52:1
AA · Large text
Check in the contrast checker

Colors similar to BlueViolet

Palettes with similar colors

Questions about BlueViolet

What is the hex code for BlueViolet?

The hex code for BlueViolet is #8A2BE2. Its RGB value is rgb(138, 43, 226) and its HSL value is hsl(271, 76%, 53%).

What colors go with BlueViolet?

The complementary color of BlueViolet is #84E22C. For a softer scheme try the analogous colors #2F2CE2 and #E22CDF; for a balanced three-color scheme use the triadic colors #E28A2C and #2CE28A.

Is BlueViolet readable as a text color?

On a white background BlueViolet has a contrast ratio of 5.96:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 3.52:1.

More purple colors