#CC2EA6#CC2EA6

#CC2EA6 is a mid, highly saturated pink. Relative luminance 0.175; OKLCH L 59.0% C 0.225 H 339.9°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#CC2EA6
RGBrgb(204, 46, 166)
HSLhsl(314, 63%, 49%)
HSVhsv(314, 77%, 80%)
CMYKcmyk(0%, 77.5%, 18.6%, 20%)
CIE-LABlab(48.94, 70.65, -28.51)
CIE-LCHlch(48.94, 76.18, 338.03°)
OKLaboklab(58.97% 0.2109 -0.0771)
OKLCHoklch(58.97% 0.225 339.9)
XYZxyz(32.7627, 17.5479, 37.7306)
Luminance0.1754 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2EA6 #2ECC54
analogous
#A32ECC #CC2EA6 #CC2E57
triadic
#CC2EA6 #A6CC2E #2EA6CC
tetradic
#CC2EA6 #CCA32E #2ECC54 #2E57CC
square
#CC2EA6 #CCA32E #2ECC54 #2E57CC
split-complementary
#CC2EA6 #57CC2E #2ECCA3
monochromatic
#681755 #9A237D #CC2EA6 #DA5DBC #E68FD1

Accessibility & contrast

On white

4.66
#CC2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#CC2EA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2EA6
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2EA6#FFFFFF#000000##FFFFFF
##CC2EA61.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A64A9
Deuteranopia (green-blind)
#6F7DA2
Tritanopia (blue-blind)
#D83468
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #cc2ea6;
/* rgb */ color: rgb(204, 46, 166);
/* oklch */ color: oklch(59.0% 0.225 339.9);
Tailwind
colors: {
  custom: {
    50: '#e078c0',
    500: '#cc2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #cc2ea6;
$custom-light: #e078c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2ea6",
  "rgb": {
    "r": 204,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 314.43,
    "s": 63.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58971,
    "c": 0.22457,
    "h": 339.9
  },
  "luminance": 0.17545
}

Semantic roles & 50–950 ramp

primary
#CC2EA6
secondary
#86D098
accent
#E66942
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CC2EA6

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CC2EA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva