#CC22BB color
#CC22BB is a pink colour. It is rgb(204, 34, 187) in RGB and hsl(306, 71%, 47%) in HSL. Text in white reads better on it: the contrast is 4.65:1 against white and 4.51: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{#CC22BB}:\quad R=\mathrm{CC}_{16}=204,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{BB}_{16}=187 - 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.
306^\circ + 180^\circ = 126^\circ ;\Rightarrow; \mathrm{#22CC33} - 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{#CC22BB} = \mathrm{rgb}(204, 34, 187) \]
\[ \mathrm{#CC22BB}:\quad R=\mathrm{CC}_{16}=204,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{BB}_{16}=187 \]
\[ H=306^\circ,\quad S=71\%,\quad L=47\% \]
\[ 306^\circ + 180^\circ = 126^\circ ;\Rightarrow; \mathrm{#22CC33} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 4.65:1\ \text{(on white)} \]#CC22BB in every colour format
| Format | Value |
|---|---|
| HEX | #CC22BB |
| RGB | rgb(204, 34, 187) |
| RGB (percent) | rgb(80.0%, 13.3%, 73.3%) |
| HSL | hsl(306, 71%, 47%) |
| HSV / HSB | hsv(306, 83%, 80%) |
| CMYK | cmyk(0%, 83%, 8%, 20%) |
| Decimal | 13378235 |
| Description | pink |
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 | 4.65:1 | pass | pass | fail | pass |
| Black text | 4.51:1 | pass | pass | fail | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #22061F #440B3E #66115E #88177D #AA1C9C |
| This colour | #CC22BB |
| Tints (mixed with white) | #D547C6 #DD6CD2 #E691DD #EEB5E8 #F7DAF4 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #1465BF | 67 |
| Deuteranopia | #627DB7 | 70 |
| Tritanopia | #D53971 | 47 |
| Grayscale | #747474 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Medium orchid | #BA55D3 |
| Dark magenta | #8B008B |
| Dark orchid | #9932CC |
| Orchid | #DA70D6 |
Questions
What is the RGB value of #CC22BB?
rgb(204, 34, 187): red 204, green 34, blue 187.
What is the HSL value of #CC22BB?
hsl(306, 71%, 47%): a hue of 306°, 71% saturation and 47% lightness.
What is the complementary colour of #CC22BB?
#22CC33, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #33DD44.
Should I use white or black text on #CC22BB?
White. White gives 4.65:1 and black 4.51:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #CC22BB?
cmyk(0%, 83%, 8%, 20%). This is a simple formula conversion; printed colours depend on the printer profile.
What is the closest named colour to #CC22BB?
Medium orchid (#BA55D3).