#9400D3
darkviolet
#9400D3 is the CSS named color "darkviolet", an exact match. In RGB it breaks down to red 148, green 0, and blue 211 out of 255 each. In HSL terms that's a hue of 282°, 100% saturation, and 41% lightness: a mid-tone — usable as an accent for buttons, links, and icons against either a light or dark background.
Every format
| HEX | #9400d3 |
| RGB | rgb(148, 0, 211) |
| HSL | hsl(282° 100% 41%) |
| HSB | hsb(282° 100% 83%) |
| OKLCH | oklch(51% 0.261 310°) |
| OKLAB | oklab(51% 0.167 -0.200) |
| LCH | lch(39% 100.2 315°) |
| CMYK | cmyk(30% 100% 0% 17%) |
Shades (darker)
#9400d3 · #8700c5 · #7b00b7 · #6f00a9 · #63009b
Tints (lighter)
#9400d3 · #a326e4 · #b23cf5 · #c24fff · #d261ff
Shades mix #9400D3 toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 6.56:1 — AA
On black: 3.20:1 — AA (large text only)
Frequently asked
- What is #9400D3 in RGB?
- #9400D3 is rgb(148, 0, 211) — red 148, green 0, blue 211 out of 255 each.
- Does #9400D3 pass WCAG contrast on a white background?
- It has a contrast ratio of 6.56:1 against white, which passes WCAG AA for normal text.
- What's a good background color to pair with #9400D3?
- White text or a white background gives better contrast (6.56:1) than black (3.20:1).