Slate blue color (#6A5ACD)
#6A5ACD (Slate blue) is a muted blue colour. It is rgb(106, 90, 205) in RGB and hsl(248, 53%, 58%) in HSL. Text in white reads better on it: the contrast is 5.31:1 against white and 3.96: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{#6A5ACD}:\quad R=\mathrm{6A}_{16}=106,\ G=\mathrm{5A}_{16}=90,\ B=\mathrm{CD}_{16}=205 - 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.
248^\circ + 180^\circ = 68^\circ ;\Rightarrow; \mathrm{#BDCD5A} - 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{#6A5ACD} = \mathrm{rgb}(106, 90, 205) \]
\[ \mathrm{#6A5ACD}:\quad R=\mathrm{6A}_{16}=106,\ G=\mathrm{5A}_{16}=90,\ B=\mathrm{CD}_{16}=205 \]
\[ H=248^\circ,\quad S=53\%,\quad L=58\% \]
\[ 248^\circ + 180^\circ = 68^\circ ;\Rightarrow; \mathrm{#BDCD5A} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 5.31:1\ \text{(on white)} \]Slate blue in every colour format
| Format | Value |
|---|---|
| HEX | #6A5ACD |
| RGB | rgb(106, 90, 205) |
| RGB (percent) | rgb(41.6%, 35.3%, 80.4%) |
| HSL | hsl(248, 53%, 58%) |
| HSV / HSB | hsv(248, 56%, 80%) |
| CMYK | cmyk(48%, 56%, 0%, 20%) |
| Decimal | 6970061 |
| Description | muted blue |
| CSS name | slateblue |
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.31:1 | pass | pass | fail | pass |
| Black text | 3.96:1 | fail | pass | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #120F22 #231E44 #352D67 #473C89 #584BAB |
| This colour | #6A5ACD |
| Tints (mixed with white) | #8376D5 #9C91DE #B5ADE6 #CDC8EE #E6E4F7 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #0E6FD1 | 24 |
| Deuteranopia | #0668CB | 22 |
| Tritanopia | #48748B | 60 |
| Grayscale | #6B6B6B | - |
Nearest named colours
| Name | Hex |
|---|---|
| Medium slate blue | #7B68EE |
| Medium purple | #9370DB |
| Royal blue | #4169E1 |
| Rebecca purple | #663399 |
Questions
What is the RGB value of #6A5ACD?
rgb(106, 90, 205): red 106, green 90, blue 205.
What is the HSL value of #6A5ACD?
hsl(248, 53%, 58%): a hue of 248°, 53% saturation and 58% lightness.
What is the complementary colour of #6A5ACD?
#BDCD5A, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #95A532.
Should I use white or black text on #6A5ACD?
White. White gives 5.31:1 and black 3.96:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #6A5ACD?
cmyk(48%, 56%, 0%, 20%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #6A5ACD a named colour?
Yes: it is the CSS colour name "slateblue".