#8A2BE2

blueviolet

#8A2BE2 is a violet colour. In RGB it is 138 red, 43 green and 226 blue, which converts to a hue of 271 degrees, 76% saturation and 53% lightness. It is one of the named CSS colours, written as blueviolet in stylesheets.

Color values

HEX#8A2BE2
RGBrgb(138, 43, 226)
HSLhsl(271, 76%, 53%)
HSVhsv(271, 81%, 89%)
CMYKcmyk(39%, 81%, 0%, 11%)

Contrast and accessibility

Against white the contrast ratio is 5.96:1, and against black it is 3.52:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

BackgroundRatioNormal textLarge text
White5.96:1AAAAA
Black3.52:1FailAA

Tints and shades

Lighter tints move #8A2BE2 toward white, and darker shades move it toward black.

Tints

Shades

Color harmonies

Complementary

Analogous

Triadic

Split complementary

Code

CSScolor: #8A2BE2;
CSS rgb()color: rgb(138 43 226);
Tailwindbg-[#8a2be2]
SwiftUIColor(red: 0.541, green: 0.169, blue: 0.886)
AndroidColor.parseColor("#8A2BE2")

Related tools