#CC2F78#CC2F78

#CC2F78 is a mid, highly saturated pink. Relative luminance 0.162; OKLCH L 57.2% C 0.200 H 357.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#CC2F78
RGBrgb(204, 47, 120)
HSLhsl(332, 63%, 49%)
HSVhsv(332, 77%, 80%)
CMYKcmyk(0%, 77%, 41.2%, 20%)
CIE-LABlab(47.28, 65.07, -3.36)
CIE-LCHlch(47.28, 65.15, 357.05°)
OKLaboklab(57.18% 0.2 -0.008)
OKLCHoklch(57.18% 0.2 357.7)
XYZxyz(29.3107, 16.2303, 19.3549)
Luminance0.1623 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2F78 #2FCC83
analogous
#CC2FC7 #CC2F78 #CC352F
triadic
#CC2F78 #78CC2F #2F78CC
tetradic
#CC2F78 #C7CC2F #2FCC83 #352FCC
square
#CC2F78 #C7CC2F #2FCC83 #352FCC
split-complementary
#CC2F78 #2FCC35 #2FC7CC
monochromatic
#69183D #9A245B #CC2F78 #DA5E98 #E590B8

Accessibility & contrast

On white

4.95
#CC2F78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#CC2F78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2F78
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2F78#FFFFFF#000000##FFFFFF
##CC2F781.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525D7A
Deuteranopia (green-blind)
#7D7B74
Tritanopia (blue-blind)
#DD1450
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #cc2f78;
/* rgb */ color: rgb(204, 47, 120);
/* oklch */ color: oklch(57.2% 0.200 357.7);
Tailwind
colors: {
  custom: {
    50: '#e1779e',
    500: '#cc2f78',
    950: '#000000',
  },
}
SCSS
$custom: #cc2f78;
$custom-light: #e1779e;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2f78",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 332.102,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57181,
    "c": 0.20019,
    "h": 357.7
  },
  "luminance": 0.16226
}

Semantic roles & 50–950 ramp

primary
#CC2F78
secondary
#87D0AE
accent
#E69A42
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0E
muted
#847C7E

Preview Lab

Preview with #CC2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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