blueviolet blueviolet #8a2be2

blueviolet is #8a2be2 in hexadecimal, rgb(138, 43, 226) in decimal and hsl(271, 76, 53) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.

HEX · RGB · HSL

#8a2be2
HEX#8a2be2
RGBrgb(138, 43, 226)
HSLhsl(271, 76%, 53%)

Harmonies

Complementary

#84e22c

Analogous

#2f2ce2#e22cdf

Triadic

#e28a2c#2ce28a

Split complementary

#dfe22c#2ce22f

Tints & shades

#761cca#801edc#8a2ce2#943ee5#9e50e7

Accessibility

vs #ffffff5.96:1
vs #0000003.52:1
Suggested text color#ffffff · 5.96:1 · WCAG AA

Similar named colors

darkorchid#9932ccdarkviolet#9400d3slateblue#6a5acdmediumslateblue#7b68eemediumorchid#ba55d3mediumpurple#9370db

FAQ

What is the HEX code for blueviolet?

blueviolet is #8a2be2 in hex, rgb(138, 43, 226) in decimal and hsl(271, 76%, 53%) in HSL. In CSS you can write either color: blueviolet; or color: #8a2be2; — they are equivalent.

What colors go with blueviolet?

The complementary #84e22c gives the strongest contrast, the analogous pair #2f2ce2 / #e22cdf is the safest, and the triad #e28a2c / #2ce28a adds more tension. All three are derived from the 271° hue of #8a2be2.

Does #8a2be2 read better on white or black?

Its contrast is 5.96:1 against white and 3.52:1 against black. Use #ffffff text on it — that gives 5.96:1, which meets WCAG AA.

Is a named color different from a hex color?

No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.

← All named colors