CSS named color
DarkViolet Color Code
DarkViolet is a medium, vivid purple with the hex code #9400D3. In RGB it is rgb(148, 0, 211), in HSL hsl(282, 100%, 41%) and in CMYK cmyk(30%, 100%, 0%, 17%).
Color values
In CSS you can write it as the keyword darkviolet.
White text on DarkViolet has a contrast ratio of 6.56:1 and black text 3.20:1, so white text is the more readable choice.
The closest Tailwind CSS color is Purple 700 (#7E22CE).
Use DarkViolet in CSS
.element {
color: darkviolet;
background-color: #9400d3;
border-color: rgb(148, 0, 211);
} Tints and shades of DarkViolet
Ten steps from light to dark at the same hue. Click any swatch to copy it.
Colors that go with DarkViolet
Color-wheel harmonies built from #9400D3. Click a swatch to copy it or open the set in the color wheel.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on DarkViolet
Colors similar to DarkViolet
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
Palettes with similar colors
Questions about DarkViolet
What is the hex code for DarkViolet?
The hex code for DarkViolet is #9400D3. Its RGB value is rgb(148, 0, 211) and its HSL value is hsl(282, 100%, 41%).
What colors go with DarkViolet?
The complementary color of DarkViolet is #3FD100. For a softer scheme try the analogous colors #2A00D1 and #D100A7; for a balanced three-color scheme use the triadic colors #D19200 and #00D192.
Is DarkViolet readable as a text color?
On a white background DarkViolet has a contrast ratio of 6.56:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 3.20:1.