Dark Violet Color
HEX #9400D3 · rgb(148, 0, 211) · hsl(282, 100%, 41%)
Dark Violet color codes
Dark Violet is one of the named colors every browser understands. In CSS you can write it as darkviolet or #9400D3.
| Format | Value | |
|---|---|---|
| HEX | #9400D3 | |
| RGB | rgb(148, 0, 211) | |
| HSL | hsl(282, 100%, 41%) | |
| CMYK | 30%, 100%, 0%, 17% | |
| CSS name | darkviolet |
.example {
color: darkviolet;
background-color: #9400D3;
border-color: rgb(148, 0, 211);
}
Colors that go with dark violet
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of dark violet
Tints mix the color with white; shades mix it with black.
Dark Violet
Contrast and readability
3.20:1
large text only
6.56:1
passes AA
Use white text on dark violet. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for dark violet?
The hex code for dark violet is #9400D3.
What is the RGB value of dark violet?
Dark Violet is rgb(148, 0, 211): 148 red, 0 green and 211 blue on a 0 to 255 scale.
What color goes with dark violet?
Its complementary color is #3FD300, which is closest to the named color lime green. Analogous and triadic matches are listed on this page.
Should text on dark violet be black or white?
Use white text. The contrast ratio is 3.20:1 with black and 6.56:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.