#CC22FF color

#CC22FF is rgb(204, 34, 255) in RGB and hsl(286, 100%, 57%) in HSL. The closest CSS named color is mediumorchid (#ba55d3, ΔE 7.3). Use black text on it (contrast 5.24:1).

#CC22FFmagenta
HEX#CC22FF
Short HEX#C2F
RGBrgb(204, 34, 255)
RGB percentrgb(80%, 13.3%, 100%)
HSLhsl(286, 100%, 57%)
HSV / HSBhsv(286, 87%, 100%)
CMYKcmyk(20%, 87%, 0%, 0%)

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

About #CC22FF

#CC22FF is a medium, vivid magenta with a hue angle of 286°. It belongs to the purple family and reads as a balanced color. In the RGB model blue is the strongest channel at 255 (100%) and green the weakest at 34 (13%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#CC22FF
Short HEX#C2F
RGBrgb(204, 34, 255)
RGB percentrgb(80%, 13.3%, 100%)
HSLhsl(286, 100%, 57%)
HSV / HSBhsv(286, 87%, 100%)
CMYKcmyk(20%, 87%, 0%, 0%)
CIELAB (D65)lab(53.2 87.2 -72.8)
Decimal13378303
Binary11001100 00100010 11111111

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

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #CC22FFRatioAA normalAA largeAAA normalAAA large
White text4.01:1FailPassFailFail
Black text5.24:1PassPassFailPass
White text on #CC22FF
Black text on #CC22FF
#CC22FF text on white
#CC22FF text on black

Relative luminance is 0.2120 (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
#0076ff

Deuteranopia
#1583fb

Tritanopia
#c85f99

Achromatopsia
#7f7f7f

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 32). 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#ba55d37.3
magenta#ff00ff8.6
darkorchid#9932cc10.8
blueviolet#8a2be212.2

Nearby colors

CSS

.element {
  color: #cc22ff;
  background-color: rgb(204, 34, 255);
  border: 1px solid hsl(286, 100%, 57%);
  box-shadow: 0 2px 8px rgb(204 34 255 / 50%);
}
:root { --brand: #cc22ff; }

Frequently asked questions

What color is #CC22FF?
A medium vivid magenta in the purple family. Closest CSS name: mediumorchid.
What is #CC22FF in RGB?
rgb(204, 34, 255): red 204, green 34, blue 255.
What is the complementary color of #CC22FF?
#55FF22, found by rotating the hue 180°.