CSS Named Color

Copy-ready color values

HEX#9400D3
RGBrgb(148, 0, 211)
HSLhsl(282, 100%, 41%)
HSVhsv(282, 100%, 83%)
CMYK approx.cmyk(30, 100, 0, 17)

Color value table

FormatValueCopy
HEX#9400D3
RGBrgb(148, 0, 211)
HSLhsl(282, 100%, 41%)
HSVhsv(282, 100%, 83%)
CMYK approx.cmyk(30, 100, 0, 17)
CSS keyworddarkviolet

Contrast and classification

DarkLightness6.56:1Contrast with white3.20:1Contrast with blackPurple / BlueColor family

Shade and tint preview

White 10%
#9F1AD7

White 30%
#B44DE0

White 70%
#DFB3F2

White 90%
#F4E6FB

Black 10%
#8500BE

Black 30%
#680094

Black 70%
#2C003F

Black 90%
#0F0015

Harmony palettes

Complementary

#6BFF2C
#8FFF5F

Analogous

#8200CB
#9419BA

Triadic

#00D394
#D39400

Split complementary

#86FF52
#58D124

Using Darkviolet

Darkviolet 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-darkviolet: #9400d3;
}

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

$darkviolet: #9400d3;

// Tailwind arbitrary value
class="bg-[#9400d3] text-white"