Dark violet
Dark violet is a vivid shade of violet. Hex code #9400D3.
Dark violet color codes
- CSS name
darkviolet - HEX
#9400D3 - RGB
rgb(148, 0, 211) - HSL
hsl(282, 100%, 41%) - OKLCH
oklch(51.5% 0.261 309.8)
HSB and CMYK values
- HSB / HSV
hsb(282, 100%, 83%) - CMYK
C30 M100 Y0 K17
White text
6.56:1 · passes WCAG AA
Black text
3.19:1 · passes WCAG AA for large text only
Shades of dark violet
A darker shade of dark violet is #520077 (700), and a lighter one is #C46EFC (300).
Colors that go with dark violet
Complementary
Analogous
Triadic
The complementary color of dark violet is #3FD300, close to lime green.
Click a color to copy its hex code.
Colors similar to dark violet
- Dark orchid#9932CC
Slightly lighter, more muted
- Blue violet#8A2BE2
Slightly lighter, more blue
- Dark magenta#8B008B
Darker, more pink, more muted
- Rebecca purple#663399
Darker, more blue, much more muted
- Slate blue#6A5ACD
Slightly lighter, more blue, more muted
- Medium orchid#BA55D3
Lighter, more muted
Each compared with dark violet.
About this color
Dark violet in CSS and design
Dark violet is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same dark violet:
color: darkviolet;
color: #9400D3;
color: rgb(148, 0, 211);
color: hsl(282, 100%, 41%);Frequently asked questions
What is the hex code for dark violet?
#9400D3. In CSS you can also use the keyword darkviolet, which works in every browser.
What is dark violet in RGB and HSL?
In RGB it is rgb(148, 0, 211) and in HSL hsl(282, 100%, 41%). In CMYK it is about C30 M100 Y0 K17, though printed colors vary with paper and ink.
Should I use black or white text on dark violet?
White text works better: it has a contrast ratio of 6.56:1 and passes WCAG AA. Black text reaches 3.19:1.
What is the complementary color of dark violet?
#3FD300, close to lime green. It sits opposite dark violet on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with dark violet?
For strong contrast, pair it with its complementary color #3FD300. For a calmer look, combine it with its analogous neighbors #2A00D3 and #D300A9. The palette generator builds more combinations.