Dark Violet color: hex #9400d3, RGB and HSL
Dark Violet is the CSS keyword darkviolet, hex #9400d3, rgb(148, 0, 211), hsl(282, 100%, 41%). It is a dark, fully saturated violet in the purples family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.
- CSS name
- darkviolet
- Hex
- #9400d3
- RGB
- rgb(148, 0, 211)
- HSL
- hsl(282, 100%, 41%)
- On white
- 6.56:1 — passes AA for body text
- On black
- 3.2:1 — large text and UI only (3:1)
.example {
color: darkviolet; /* keyword */
color: #9400d3; /* hex */
color: rgb(148, 0, 211); /* rgb */
color: hsl(282, 100%, 41%); /* hsl */
}What colors go with dark violet
Each match keeps dark violet's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside dark violet as the primary; the harmony guides explain which rule suits which interface.
Complementary
The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.
Split-complementary
The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.
Triadic
Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.
Analogous
The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.
Tints and shades of dark violet
Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as dark violet — these are the hover, pressed, disabled and surface variants a single brand color needs.
Tints (lighter)
Shades (darker)
A UI color palette built from dark violet
The eight semantic roles an interface actually uses, derived from dark violet as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.
- primary
- #9400d3
- secondary
- #a8d300
- accent
- #00d32b
- background
- #fdfcfd
- surface
- #f6f3f7
- text
- #1d1122
- muted
- #7e568f
- border
- #e8dfec
- primary
- #ba1aff
- secondary
- #d1ff1a
- accent
- #1aff48
- background
- #170e1b
- surface
- #221528
- text
- #f5f3f6
- muted
- #ad94b8
- border
- #3f2749
Using dark violet in an interface
Purple is the hue most SaaS products have settled on for a primary — it is distinct from the blues of links and the reds and greens of status. The slate blues and indigo make dependable primaries; the light lavenders make tinted surfaces that still read as brand. Whichever role dark violet takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.
- What is the hex code for Dark Violet?
- Dark Violet is #9400d3. In CSS the keyword darkviolet, the hex #9400d3, rgb(148, 0, 211) and hsl(282, 100%, 41%) all paint the same color.
- What colors go with Dark Violet?
- Its complement is #3fd300, the split-complementary pair is #a9d300 and #00d32a, the triadic partners are #d39400 and #00d394, and the analogous neighbors are #2a00d3 and #d300a9. In an interface, use Dark Violet for most colored elements and one of these for a single accent, at roughly an 80/20 split.
- What is the opposite of Dark Violet on the color wheel?
- The opposite (complementary) color is #3fd300, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
- Can I use Dark Violet for text?
- Dark Violet as text on white has a contrast ratio of 6.56:1, which passes WCAG AA for body text (4.5:1). On black it is 3.2:1, which fails for body text. It works as a text color on light surfaces.