About #CC22EE
#CC22EE is a medium, vivid magenta with a hue angle of 290°. It belongs to the pink & magenta family and reads as a balanced color. In the RGB model blue is the strongest channel at 238 (93%) 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.
- It can be written in 3-digit shorthand as
#c2e.
Color conversions
| HEX | #CC22EE |
|---|---|
| Short HEX | #C2E |
| RGB | rgb(204, 34, 238) |
| RGB percent | rgb(80%, 13.3%, 93.3%) |
| HSL | hsl(290, 86%, 53%) |
| HSV / HSB | hsv(290, 86%, 93%) |
| CMYK | cmyk(14%, 86%, 0%, 7%) |
| CIELAB (D65) | lab(52 84.3 -65.1) |
| Decimal | 13378286 |
| Binary | 11001100 00100010 11101110 |
HEX CC 22 EE → 204, 34, 238 (each pair is a base-16 number: C×16 + C = 204)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
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 #CC22EE
Tints (mixed with white)
Shades (mixed with black)
Tones (mixed with gray)
Contrast and accessibility
| Text on #CC22EE | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 4.17:1 | Fail | Pass | Fail | Fail |
| Black text | 5.03:1 | Pass | Pass | Fail | Pass |
Relative luminance is 0.2015 (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#0071f3
Deuteranopia#3981ea
Tritanopia#cc568f
Achromatopsia#7c7c7c
With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 31.9). 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
| Name | HEX | ΔE 2000 |
|---|---|---|
| mediumorchid | #ba55d3 | 6.3 |
| magenta | #ff00ff | 8.8 |
| darkorchid | #9932cc | 9.7 |
| blueviolet | #8a2be2 | 11.8 |
Nearby colors
#dd22eeless red
#bb22eemore green
#cc33eeless green
#cc11eemore blue
#cc22ffless blue
#cc22ddlighter
#dd33ffdarker
#bb11dd
CSS
.element {
color: #cc22ee;
background-color: rgb(204, 34, 238);
border: 1px solid hsl(290, 86%, 53%);
box-shadow: 0 2px 8px rgb(204 34 238 / 50%);
}
:root { --brand: #cc22ee; }