#CC2D7B#CC2D7B

#CC2D7B is a mid, highly saturated pink. Relative luminance 0.161; OKLCH L 57.1% C 0.203 H 356.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CC2D7B
RGBrgb(204, 45, 123)
HSLhsl(331, 64%, 49%)
HSVhsv(331, 78%, 80%)
CMYKcmyk(0%, 77.9%, 39.7%, 20%)
CIE-LABlab(47.17, 65.94, -5.35)
CIE-LCHlch(47.17, 66.16, 355.36°)
OKLaboklab(57.13% 0.2028 -0.0132)
OKLCHoklch(57.13% 0.203 356.3)
XYZxyz(29.4175, 16.1480, 20.3028)
Luminance0.1614 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2D7B #2DCC7E
analogous
#CC2DCB #CC2D7B #CC2F2D
triadic
#CC2D7B #7BCC2D #2D7BCC
tetradic
#CC2D7B #CBCC2D #2DCC7E #2F2DCC
square
#CC2D7B #CBCC2D #2DCC7E #2F2DCC
split-complementary
#CC2D7B #2DCC2F #2DCBCC
monochromatic
#68173F #9A225D #CC2D7B #DB5B9A #E68DB9

Accessibility & contrast

On white

4.97
#CC2D7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#CC2D7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2D7B
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2D7B#FFFFFF#000000##FFFFFF
##CC2D7B1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5D7D
Deuteranopia (green-blind)
#7B7A77
Tritanopia (blue-blind)
#DD1350
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #cc2d7b;
/* rgb */ color: rgb(204, 45, 123);
/* oklch */ color: oklch(57.1% 0.203 356.3);
Tailwind
colors: {
  custom: {
    50: '#e176a1',
    500: '#cc2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #cc2d7b;
$custom-light: #e176a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2d7b",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 330.566,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57134,
    "c": 0.20321,
    "h": 356.3
  },
  "luminance": 0.16144
}

Semantic roles & 50–950 ramp

primary
#CC2D7B
secondary
#85D0AB
accent
#E79541
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0E
muted
#847C7E

Preview Lab

Preview with #CC2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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