CSS Named Color

Copy-ready color values

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

Color value table

FormatValueCopy
HEX#8A2BE2
RGBrgb(138, 43, 226)
HSLhsl(271, 76%, 53%)
HSVhsv(271, 81%, 89%)
CMYK approx.cmyk(39, 81, 0, 11)
CSS keywordblueviolet

Contrast and classification

DarkLightness5.96:1Contrast with white3.52:1Contrast with blackPurple / BlueColor family

Shade and tint preview

White 10%
#9640E5

White 30%
#AD6BEB

White 70%
#DCBFF6

White 90%
#F3EAFC

Black 10%
#7C27CB

Black 30%
#611E9E

Black 70%
#290D44

Black 90%
#0E0417

Harmony palettes

Complementary

#75D41D
#96DE53

Analogous

#7F2BD7
#8A41CC

Triadic

#2BE28A
#E28A2B

Split complementary

#8EDC46
#60AE18

Using Blueviolet

Blueviolet works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-blueviolet: #8a2be2;
}

.button-primary {
  background: var(--color-blueviolet);
  color: #ffffff;
}

$blueviolet: #8a2be2;

// Tailwind arbitrary value
class="bg-[#8a2be2] text-white"