Skip to main content
matte

#8A2BE2

blueviolet

#8A2BE2 is the CSS named color "blueviolet", an exact match. In RGB it breaks down to red 138, green 43, and blue 226 out of 255 each. In HSL terms that's a hue of 271°, 76% saturation, and 53% lightness: a mid-tone — usable as an accent for buttons, links, and icons against either a light or dark background.

Every format

HEX#8a2be2
RGBrgb(138, 43, 226)
HSLhsl(271° 76% 53%)
HSBhsb(271° 81% 89%)
OKLCHoklch(53% 0.250 301°)
OKLABoklab(53% 0.130 -0.214)
LCHlch(41% 98.7 310°)
CMYKcmyk(39% 81% 0% 11%)

Shades (darker)

#8a2be2 · #7e13d3 · #7200c4 · #6600b6 · #5a00a7

Tints (lighter)

#8a2be2 · #983ff2 · #a650ff · #b461ff · #c371ff

Shades mix #8A2BE2 toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.

On white: 5.96:1 — AA
On black: 3.52:1 — AA (large text only)

Frequently asked

What is #8A2BE2 in RGB?
#8A2BE2 is rgb(138, 43, 226) — red 138, green 43, blue 226 out of 255 each.
Does #8A2BE2 pass WCAG contrast on a white background?
It has a contrast ratio of 5.96:1 against white, which passes WCAG AA for normal text.
What's a good background color to pair with #8A2BE2?
White text or a white background gives better contrast (5.96:1) than black (3.52:1).

Related colors

Full color tools