CSS color names · Purples

Blue Violet color: hex #8a2be2, RGB and HSL

Blue Violet is the CSS keyword blueviolet, hex #8a2be2, rgb(138, 43, 226), hsl(271, 76%, 53%). It is a medium, vivid violet in the purples family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
blueviolet
Hex
#8a2be2
RGB
rgb(138, 43, 226)
HSL
hsl(271, 76%, 53%)
On white
5.96:1 — passes AA for body text
On black
3.52:1 — large text and UI only (3:1)
.example {
  color: blueviolet;          /* keyword */
  color: #8a2be2;          /* hex */
  color: rgb(138, 43, 226); /* rgb */
  color: hsl(271, 76%, 53%); /* hsl */
}

What colors go with blue violet

Each match keeps blue violet's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside blue violet as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#83e22b

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#dee22b
#2be22f

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#e28a2b
#2be28a

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#2f2be2
#e22bde

Tints and shades of blue violet

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as blue violet — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#9e4ee7
#b172ec
#c595f1
#d8b8f5
#ecdcfa

Shades (darker)

#731bc5
#5c169e
#451076
#2e0b4f
#170527

A UI color palette built from blue violet

The eight semantic roles an interface actually uses, derived from blue violet as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#8a2be2
secondary
#dee22b
accent
#2be22f
background
#fcfcfd
surface
#f5f3f7
text
#1a1122
muted
#74568f
border
#e6dfec
Dark mode
primary
#9035e3
secondary
#e0e335
accent
#35e338
background
#150e1b
surface
#1f1528
text
#f5f3f6
muted
#a694b8
border
#392749

Using blue violet in an interface

Purple is the hue most SaaS products have settled on for a primary — it is distinct from the blues of links and the reds and greens of status. The slate blues and indigo make dependable primaries; the light lavenders make tinted surfaces that still read as brand. Whichever role blue violet takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Blue Violet?
Blue Violet is #8a2be2. In CSS the keyword blueviolet, the hex #8a2be2, rgb(138, 43, 226) and hsl(271, 76%, 53%) all paint the same color.
What colors go with Blue Violet?
Its complement is #83e22b, the split-complementary pair is #dee22b and #2be22f, the triadic partners are #e28a2b and #2be28a, and the analogous neighbors are #2f2be2 and #e22bde. In an interface, use Blue Violet for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Blue Violet on the color wheel?
The opposite (complementary) color is #83e22b, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Blue Violet for text?
Blue Violet as text on white has a contrast ratio of 5.96:1, which passes WCAG AA for body text (4.5:1). On black it is 3.52:1, which fails for body text. It works as a text color on light surfaces.

Similar named colors

More purples

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.