Medium purple color (#9370DB)
#9370DB (Medium purple) is a purple colour. It is rgb(147, 112, 219) in RGB and hsl(260, 60%, 65%) in HSL. Text in black reads better on it: the contrast is 5.58:1 against black and 3.76:1 against white.
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{#9370DB}:\quad R=\mathrm{93}_{16}=147,\ G=\mathrm{70}_{16}=112,\ B=\mathrm{DB}_{16}=219 - 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.
260^\circ + 180^\circ = 80^\circ ;\Rightarrow; \mathrm{#B8DB70} - 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{#9370DB} = \mathrm{rgb}(147, 112, 219) \]
\[ \mathrm{#9370DB}:\quad R=\mathrm{93}_{16}=147,\ G=\mathrm{70}_{16}=112,\ B=\mathrm{DB}_{16}=219 \]
\[ H=260^\circ,\quad S=60\%,\quad L=65\% \]
\[ 260^\circ + 180^\circ = 80^\circ ;\Rightarrow; \mathrm{#B8DB70} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 3.76:1\ \text{(on white)} \]Medium purple in every colour format
| Format | Value |
|---|---|
| HEX | #9370DB |
| RGB | rgb(147, 112, 219) |
| RGB (percent) | rgb(57.6%, 43.9%, 85.9%) |
| HSL | hsl(260, 60%, 65%) |
| HSV / HSB | hsv(260, 49%, 86%) |
| CMYK | cmyk(33%, 49%, 0%, 14%) |
| Decimal | 9662683 |
| Description | purple |
| CSS name | mediumpurple |
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 | 3.76:1 | fail | pass | fail | fail |
| Black text | 5.58:1 | pass | pass | fail | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #181324 #312549 #4A386E #624B92 #7B5DB7 |
| This colour | #9370DB |
| Tints (mixed with white) | #A588E1 #B7A0E7 #C9B8ED #DBCFF3 #EDE7F9 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #4B84DF | 27 |
| Deuteranopia | #5282D8 | 26 |
| Tritanopia | #83849B | 50 |
| Grayscale | #848484 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Slate blue | #6A5ACD |
| Medium slate blue | #7B68EE |
| Royal blue | #4169E1 |
| Medium orchid | #BA55D3 |
Questions
What is the RGB value of #9370DB?
rgb(147, 112, 219): red 147, green 112, blue 219.
What is the HSL value of #9370DB?
hsl(260, 60%, 65%): a hue of 260°, 60% saturation and 65% lightness.
What is the complementary colour of #9370DB?
#B8DB70, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #6C8F24.
Should I use white or black text on #9370DB?
Black. White gives 3.76:1 and black 5.58:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #9370DB?
cmyk(33%, 49%, 0%, 14%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #9370DB a named colour?
Yes: it is the CSS colour name "mediumpurple".