#CC22AA color

#CC22AA is rgb(204, 34, 170) in RGB and hsl(312, 71%, 47%) in HSL. The closest CSS named color is mediumvioletred (#c71585, ΔE 6.8). Use white text on it (contrast 4.80:1).

#CC22AApink
HEX#CC22AA
Short HEX#C2A
RGBrgb(204, 34, 170)
RGB percentrgb(80%, 13.3%, 66.7%)
HSLhsl(312, 71%, 47%)
HSV / HSBhsv(312, 83%, 80%)
CMYKcmyk(0%, 83%, 17%, 20%)

Edit in the color converter → · Check contrast → · Shades →

About #CC22AA

#CC22AA is a medium, saturated pink with a hue angle of 312°. It belongs to the pink & magenta family and reads as a warm color. In the RGB model red is the strongest channel at 204 (80%) and green the weakest at 34 (13%). Colors like this are typically used for illustrations, charts, highlights and secondary buttons.

Color conversions

HEX#CC22AA
Short HEX#C2A
RGBrgb(204, 34, 170)
RGB percentrgb(80%, 13.3%, 66.7%)
HSLhsl(312, 71%, 47%)
HSV / HSBhsv(312, 83%, 80%)
CMYKcmyk(0%, 83%, 17%, 20%)
CIELAB (D65)lab(48.1 74.1 -32.2)
Decimal13378218
Binary11001100 00100010 10101010

HEX CC 22 AA → 204, 34, 170 (each pair is a base-16 number: C×16 + C = 204)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #CC22AA

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #CC22AARatioAA normalAA largeAAA normalAAA large
White text4.80:1PassPassFailPass
Black text4.38:1FailPassFailFail
White text on #CC22AA
Black text on #CC22AA
#CC22AA text on white
#CC22AA text on black

Relative luminance is 0.1688 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#2d62ad

Deuteranopia
#6a7ba6

Tritanopia
#d82e67

Achromatopsia
#727272

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 30.1). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
mediumvioletred#c715856.8
mediumorchid#ba55d310.1
darkorchid#9932cc12.2
deeppink#ff149312.7

Nearby colors

CSS

.element {
  color: #cc22aa;
  background-color: rgb(204, 34, 170);
  border: 1px solid hsl(312, 71%, 47%);
  box-shadow: 0 2px 8px rgb(204 34 170 / 50%);
}
:root { --brand: #cc22aa; }

Frequently asked questions

What color is #CC22AA?
A medium saturated pink in the pink & magenta family. Closest CSS name: mediumvioletred.
What is #CC22AA in RGB?
rgb(204, 34, 170): red 204, green 34, blue 170.
What is the complementary color of #CC22AA?
#22CC44, found by rotating the hue 180°.