#5522AA color
#5522AA is a purple colour. It is rgb(85, 34, 170) in RGB and hsl(263, 67%, 40%) in HSL. Text in white reads better on it: the contrast is 9.56:1 against white and 2.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{#5522AA}:\quad R=\mathrm{55}_{16}=85,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{AA}_{16}=170 - 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.
263^\circ + 180^\circ = 83^\circ ;\Rightarrow; \mathrm{#77AA22} - 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{#5522AA} = \mathrm{rgb}(85, 34, 170) \]
\[ \mathrm{#5522AA}:\quad R=\mathrm{55}_{16}=85,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{AA}_{16}=170 \]
\[ H=263^\circ,\quad S=67\%,\quad L=40\% \]
\[ 263^\circ + 180^\circ = 83^\circ ;\Rightarrow; \mathrm{#77AA22} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 9.56:1\ \text{(on white)} \]#5522AA in every colour format
| Format | Value |
|---|---|
| HEX | #5522AA |
| RGB | rgb(85, 34, 170) |
| RGB (percent) | rgb(33.3%, 13.3%, 66.7%) |
| HSL | hsl(263, 67%, 40%) |
| HSV / HSB | hsv(263, 80%, 67%) |
| CMYK | cmyk(50%, 80%, 0%, 33%) |
| Decimal | 5579434 |
| Description | purple |
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 | 9.56:1 | pass | pass | pass | pass |
| Black text | 2.20:1 | fail | fail | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #0E061C #1C0B39 #2B1155 #391771 #471C8E |
| This colour | #5522AA |
| Tints (mixed with white) | #7147B8 #8E6CC6 #AA91D5 #C6B5E3 #E3DAF1 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #0047AE | 29 |
| Deuteranopia | #0042A8 | 29 |
| Tritanopia | #394966 | 67 |
| Grayscale | #454545 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Indigo | #4B0082 |
| Dark blue | #00008B |
| Navy | #000080 |
| Rebecca purple | #663399 |
Questions
What is the RGB value of #5522AA?
rgb(85, 34, 170): red 85, green 34, blue 170.
What is the HSL value of #5522AA?
hsl(263, 67%, 40%): a hue of 263°, 67% saturation and 40% lightness.
What is the complementary colour of #5522AA?
#77AA22, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #AADD55.
Should I use white or black text on #5522AA?
White. White gives 9.56:1 and black 2.20:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #5522AA?
cmyk(50%, 80%, 0%, 33%). This is a simple formula conversion; printed colours depend on the printer profile.
What is the closest named colour to #5522AA?
Indigo (#4B0082).