Medium violet red color (#C71585)
#C71585 (Medium violet red) is a pink colour. It is rgb(199, 21, 133) in RGB and hsl(322, 81%, 43%) in HSL. Text in white reads better on it: the contrast is 5.42:1 against white and 3.87: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{#C71585}:\quad R=\mathrm{C7}_{16}=199,\ G=\mathrm{15}_{16}=21,\ B=\mathrm{85}_{16}=133 - 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.
322^\circ + 180^\circ = 142^\circ ;\Rightarrow; \mathrm{#15C757} - 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{#C71585} = \mathrm{rgb}(199, 21, 133) \]
\[ \mathrm{#C71585}:\quad R=\mathrm{C7}_{16}=199,\ G=\mathrm{15}_{16}=21,\ B=\mathrm{85}_{16}=133 \]
\[ H=322^\circ,\quad S=81\%,\quad L=43\% \]
\[ 322^\circ + 180^\circ = 142^\circ ;\Rightarrow; \mathrm{#15C757} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 5.42:1\ \text{(on white)} \]Medium violet red in every colour format
| Format | Value |
|---|---|
| HEX | #C71585 |
| RGB | rgb(199, 21, 133) |
| RGB (percent) | rgb(78.0%, 8.2%, 52.2%) |
| HSL | hsl(322, 81%, 43%) |
| HSV / HSB | hsv(322, 89%, 78%) |
| CMYK | cmyk(0%, 89%, 33%, 22%) |
| Decimal | 13047173 |
| Description | pink |
| CSS name | mediumvioletred |
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 | 5.42:1 | pass | pass | fail | pass |
| Black text | 3.87:1 | fail | pass | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #210316 #42072C #640B43 #850E59 #A6126F |
| This colour | #C71585 |
| Tints (mixed with white) | #D03C99 #DA63AE #E38AC2 #ECB1D6 #F6D8EB |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #3D5787 | 68 |
| Deuteranopia | #707481 | 70 |
| Tritanopia | #D6004F | 35 |
| Grayscale | #6A6A6A | - |
Nearest named colours
| Name | Hex |
|---|---|
| Deep pink | #FF1493 |
| Hot pink | #FF69B4 |
| Dark magenta | #8B008B |
| Purple | #800080 |
Questions
What is the RGB value of #C71585?
rgb(199, 21, 133): red 199, green 21, blue 133.
What is the HSL value of #C71585?
hsl(322, 81%, 43%): a hue of 322°, 81% saturation and 43% lightness.
What is the complementary colour of #C71585?
#15C757, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #38EA7A.
Should I use white or black text on #C71585?
White. White gives 5.42:1 and black 3.87:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #C71585?
cmyk(0%, 89%, 33%, 22%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #C71585 a named colour?
Yes: it is the CSS colour name "mediumvioletred".