Dark violet color (#9400D3)
#9400D3 (Dark violet) is a vivid purple colour. It is rgb(148, 0, 211) in RGB and hsl(282, 100%, 41%) in HSL. Text in white reads better on it: the contrast is 6.56:1 against white and 3.20:1 against black.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#9400D3}:\quad R=\mathrm{94}_{16}=148,\ G=\mathrm{00}_{16}=0,\ B=\mathrm{D3}_{16}=211 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
282^\circ + 180^\circ = 102^\circ ;\Rightarrow; \mathrm{#3FD300} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#9400D3} = \mathrm{rgb}(148, 0, 211) \]
\[ \mathrm{#9400D3}:\quad R=\mathrm{94}_{16}=148,\ G=\mathrm{00}_{16}=0,\ B=\mathrm{D3}_{16}=211 \]
\[ H=282^\circ,\quad S=100\%,\quad L=41\% \]
\[ 282^\circ + 180^\circ = 102^\circ ;\Rightarrow; \mathrm{#3FD300} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 6.56:1\ \text{(on white)} \]Dark violet in every colour format
| Format | Value |
|---|---|
| HEX | #9400D3 |
| RGB | rgb(148, 0, 211) |
| RGB (percent) | rgb(58.0%, 0.0%, 82.7%) |
| HSL | hsl(282, 100%, 41%) |
| HSV / HSB | hsv(282, 100%, 83%) |
| CMYK | cmyk(30%, 100%, 0%, 17%) |
| Decimal | 9699539 |
| Description | vivid purple |
| CSS name | darkviolet |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 6.56:1 | pass | pass | fail | pass |
| Black text | 3.20:1 | fail | pass | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #190023 #310046 #4A006A #63008D #7B00B0 |
| This colour | #9400D3 |
| Tints (mixed with white) | #A62BDA #B855E2 #CA80E9 #DBAAF0 #EDD5F8 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #0058D8 | 48 |
| Deuteranopia | #005FD0 | 55 |
| Tritanopia | #8A4C7B | 70 |
| Grayscale | #5D5D5D | - |
Nearest named colours
| Name | Hex |
|---|---|
| Blue violet | #8A2BE2 |
| Dark orchid | #9932CC |
| Medium blue | #0000CD |
| Fuchsia | #FF00FF |
Questions
What is the RGB value of #9400D3?
rgb(148, 0, 211): red 148, green 0, blue 211.
What is the HSL value of #9400D3?
hsl(282, 100%, 41%): a hue of 282°, 100% saturation and 41% lightness.
What is the complementary colour of #9400D3?
#3FD300, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #6BFF2C.
Should I use white or black text on #9400D3?
White. White gives 6.56:1 and black 3.20:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #9400D3?
cmyk(30%, 100%, 0%, 17%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #9400D3 a named colour?
Yes: it is the CSS colour name "darkviolet".