CSS Named Color
Copy-ready color values
HEX
#9400D3RGB
rgb(148, 0, 211)HSL
hsl(282, 100%, 41%)HSV
hsv(282, 100%, 83%)CMYK approx.
cmyk(30, 100, 0, 17)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #9400D3 | |
| RGB | rgb(148, 0, 211) | |
| HSL | hsl(282, 100%, 41%) | |
| HSV | hsv(282, 100%, 83%) | |
| CMYK approx. | cmyk(30, 100, 0, 17) | |
| CSS keyword | darkviolet |
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#8FFF5FAnalogous
#8200CB#9419BATriadic
#00D394#D39400Split complementary
#86FF52#58D124Using 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"