Medium orchid color (#BA55D3)
#BA55D3 (Medium orchid) is a purple colour. It is rgb(186, 85, 211) in RGB and hsl(288, 59%, 58%) in HSL. Text in black reads better on it: the contrast is 5.33:1 against black and 3.94: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{#BA55D3}:\quad R=\mathrm{BA}_{16}=186,\ G=\mathrm{55}_{16}=85,\ 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.
288^\circ + 180^\circ = 108^\circ ;\Rightarrow; \mathrm{#6ED355} - 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{#BA55D3} = \mathrm{rgb}(186, 85, 211) \]
\[ \mathrm{#BA55D3}:\quad R=\mathrm{BA}_{16}=186,\ G=\mathrm{55}_{16}=85,\ B=\mathrm{D3}_{16}=211 \]
\[ H=288^\circ,\quad S=59\%,\quad L=58\% \]
\[ 288^\circ + 180^\circ = 108^\circ ;\Rightarrow; \mathrm{#6ED355} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 3.94:1\ \text{(on white)} \]Medium orchid in every colour format
| Format | Value |
|---|---|
| HEX | #BA55D3 |
| RGB | rgb(186, 85, 211) |
| RGB (percent) | rgb(72.9%, 33.3%, 82.7%) |
| HSL | hsl(288, 59%, 58%) |
| HSV / HSB | hsv(288, 60%, 83%) |
| CMYK | cmyk(12%, 60%, 0%, 17%) |
| Decimal | 12211667 |
| Description | purple |
| CSS name | mediumorchid |
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.94:1 | fail | pass | fail | fail |
| Black text | 5.33:1 | pass | pass | fail | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #1F0E23 #3E1C46 #5D2B6A #7C398D #9B47B0 |
| This colour | #BA55D3 |
| Tints (mixed with white) | #C671DA #D18EE2 #DDAAE9 #E8C6F0 #F4E3F8 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #3679D7 | 49 |
| Deuteranopia | #5D84D0 | 50 |
| Tritanopia | #BA698C | 48 |
| Grayscale | #808080 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Orchid | #DA70D6 |
| Dark orchid | #9932CC |
| Violet | #EE82EE |
| Medium purple | #9370DB |
Questions
What is the RGB value of #BA55D3?
rgb(186, 85, 211): red 186, green 85, blue 211.
What is the HSL value of #BA55D3?
hsl(288, 59%, 58%): a hue of 288°, 59% saturation and 58% lightness.
What is the complementary colour of #BA55D3?
#6ED355, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #45AA2C.
Should I use white or black text on #BA55D3?
Black. White gives 3.94:1 and black 5.33:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #BA55D3?
cmyk(12%, 60%, 0%, 17%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #BA55D3 a named colour?
Yes: it is the CSS colour name "mediumorchid".