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.
- It can be written in 3-digit shorthand as
#c2f.
Color conversions
| HEX | #CC22FF |
|---|---|
| Short HEX | #C2F |
| RGB | rgb(204, 34, 255) |
| RGB percent | rgb(80%, 13.3%, 100%) |
| HSL | hsl(286, 100%, 57%) |
| HSV / HSB | hsv(286, 87%, 100%) |
| CMYK | cmyk(20%, 87%, 0%, 0%) |
| CIELAB (D65) | lab(53.2 87.2 -72.8) |
| Decimal | 13378303 |
| Binary | 11001100 00100010 11111111 |
HEX CC 22 FF → 204, 34, 255 (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 #CC22FF
Tints (mixed with white)
Shades (mixed with black)
Tones (mixed with gray)
Contrast and accessibility
| Text on #CC22FF | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 4.01:1 | Fail | Pass | Fail | Fail |
| Black text | 5.24:1 | Pass | Pass | Fail | Pass |
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
| Name | HEX | ΔE 2000 |
|---|---|---|
| mediumorchid | #ba55d3 | 7.3 |
| magenta | #ff00ff | 8.6 |
| darkorchid | #9932cc | 10.8 |
| blueviolet | #8a2be2 | 12.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; }