#CC2F7D#CC2F7D

#CC2F7D is a mid, highly saturated pink. Relative luminance 0.164; OKLCH L 57.4% C 0.202 H 355.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CC2F7D
RGBrgb(204, 47, 125)
HSLhsl(330, 63%, 49%)
HSVhsv(330, 77%, 80%)
CMYKcmyk(0%, 77%, 38.7%, 20%)
CIE-LABlab(47.44, 65.56, -6.17)
CIE-LCHlch(47.44, 65.85, 354.62°)
OKLaboklab(57.35% 0.2015 -0.0154)
OKLCHoklch(57.35% 0.202 355.6)
XYZxyz(29.6221, 16.3548, 20.9950)
Luminance0.1635 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2F7D #2FCC7E
analogous
#CC2FCC #CC2F7D #CC2F2F
triadic
#CC2F7D #7DCC2F #2F7DCC
tetradic
#CC2F7D #CCCC2F #2FCC7E #2F2FCC
square
#CC2F7D #CCCC2F #2FCC7E #2F2FCC
split-complementary
#CC2F7D #2FCC2F #2FCCCC
monochromatic
#691840 #9A245F #CC2F7D #DA5E9C #E590BA

Accessibility & contrast

On white

4.92
#CC2F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#CC2F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2F7D
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2F7D#FFFFFF#000000##FFFFFF
##CC2F7D1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505E7F
Deuteranopia (green-blind)
#7B7B79
Tritanopia (blue-blind)
#DC1852
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #cc2f7d;
/* rgb */ color: rgb(204, 47, 125);
/* oklch */ color: oklch(57.4% 0.202 355.6);
Tailwind
colors: {
  custom: {
    50: '#e177a2',
    500: '#cc2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #cc2f7d;
$custom-light: #e177a2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2f7d",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 330.191,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57352,
    "c": 0.20212,
    "h": 355.6
  },
  "luminance": 0.16351
}

Semantic roles & 50–950 ramp

primary
#CC2F7D
secondary
#87D0AC
accent
#E69442
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0F
muted
#847C7E

Preview Lab

Preview with #CC2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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