#CC22CC color

#CC22CC is rgb(204, 34, 204) in RGB and hsl(300, 71%, 47%) in HSL. The closest CSS named color is mediumorchid (#ba55d3, ΔE 6.5). Use black text on it (contrast 4.67:1).

#CC22CCmagenta
HEX#CC22CC
Short HEX#C2C
RGBrgb(204, 34, 204)
RGB percentrgb(80%, 13.3%, 80%)
HSLhsl(300, 71%, 47%)
HSV / HSBhsv(300, 83%, 80%)
CMYKcmyk(0%, 83%, 0%, 20%)

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

About #CC22CC

#CC22CC is a medium, saturated magenta with a hue angle of 300°. 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#CC22CC
Short HEX#C2C
RGBrgb(204, 34, 204)
RGB percentrgb(80%, 13.3%, 80%)
HSLhsl(300, 71%, 47%)
HSV / HSBhsv(300, 83%, 80%)
CMYKcmyk(0%, 83%, 0%, 20%)
CIELAB (D65)lab(49.9 78.9 -49.2)
Decimal13378252
Binary11001100 00100010 11001100

HEX CC 22 CC → 204, 34, 204 (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 #CC22CC

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #CC22CCRatioAA normalAA largeAAA normalAAA large
White text4.50:1FailPassFailFail
Black text4.67:1PassPassFailPass
White text on #CC22CC
Black text on #CC22CC
#CC22CC text on white
#CC22CC text on black

Relative luminance is 0.1834 (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
#0069d0

Deuteranopia
#587ec8

Tritanopia
#d3437b

Achromatopsia
#777777

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 31.5). 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
mediumorchid#ba55d36.5
darkorchid#9932cc9.4
magenta#ff00ff10.6
darkviolet#9400d312.3

Nearby colors

CSS

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

Frequently asked questions

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