Darkviolet — #9400D3
#9400D3 is a medium, vivid violet. It is the CSS named color darkviolet.
Color values
| HEX | #9400D3 |
| RGB | rgb(148, 0, 211) |
| HSL | hsl(282, 100%, 41%) |
| CMYK | cmyk(30%, 100%, 0%, 17%) |
| Decimal | 9699539 |
| CSS | color: #9400D3; |
| Android | 0xFF9400D3 |
| Swift | UIColor(red: 0.580, green: 0.000, blue: 0.827, alpha: 1) |
Accessibility and contrast
| White text on #9400D3 | 6.56:1 — AA pass · AA large pass · AAA fail |
| Black text on #9400D3 | 3.20:1 — AA fail · AA large pass · AAA fail |
| Recommended text color | white |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #9400D3
Each swatch keeps the hue and saturation of #9400D3 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #9400D3
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #9400D3 in code
/* CSS */
.element { color: #9400D3; background-color: #9400D3; }
.element { color: rgb(148 0 211); }
.element { color: hsl(282 100% 41%); }
/* Tailwind arbitrary value */
<div class="bg-[#9400D3] text-white">
/* SCSS variable */
$brand: #9400D3;
Frequently asked questions
What color is #9400D3?
#9400D3 is a medium, vivid violet, which CSS calls darkviolet. Its hue sits at 282° on the color wheel, with 100% saturation and 41% lightness.
What is #9400D3 in RGB?
#9400D3 converts to rgb(148, 0, 211) — 148 red, 0 green and 211 blue.
What is #9400D3 in CMYK?
Approximately cmyk(30%, 100%, 0%, 17%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #9400D3 be white or black?
White gives the better contrast ratio (6.56:1 versus 3.20:1).
What is the complementary color of #9400D3?
#3FD100 — the hue directly opposite #9400D3 on the color wheel.