#9400D3 — Dark Violet

Dark Violet is the CSS named color #9400D3 — rgb(148, 0, 211), hsl(282, 100%, 41%). Its relative luminance is 0.110, giving 6.56:1 against white and 3.20:1 against black, so it works as a text color on white.

Dark Violet in every notation

HEX#9400D3
RGBrgb(148, 0, 211)
HSLhsl(282, 100%, 41%)
Relative luminance0.1100
Contrast on white6.56:1 AA pass
Contrast on black3.20:1 large text only

Tints and shades of darkviolet

#EFD9F8
#DAA6F0
#BF66E5
#A72EDB
#9400D3
#7E00B3
#65008F
#4A006A
#2F0044

Built by mixing darkviolet toward white (four steps) and toward black (four steps) while keeping the hue. Use the shades generator for a different step count or to add harmony sets.

Similar CSS colors

Closest by CIELAB distance (ΔE76). For perceptual matching in a design system, compare in OKLab before locking a token.

Frequently asked questions

What is the hex code for darkviolet?

darkviolet is #9400D3, which is rgb(148, 0, 211) and hsl(282, 100%, 41%). It is one of the 148 CSS named colors defined by the CSS Color Module Level 4.

Is darkviolet light or dark?

Dark Violet has a relative luminance of 0.110 on a 0–1 scale, so it is a dark color. Against white it scores 6.56:1; against black, 3.20:1.

Can I use darkviolet for text?

darkviolet reaches 6.56:1 against white, which clears WCAG 2.2 AA for normal text (4.5:1) at any size.