#CC2D9B#CC2D9B

#CC2D9B is a mid, highly saturated pink. Relative luminance 0.171; OKLCH L 58.4% C 0.219 H 343.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#CC2D9B
RGBrgb(204, 45, 155)
HSLhsl(318, 64%, 49%)
HSVhsv(318, 78%, 80%)
CMYKcmyk(0%, 77.9%, 24%, 20%)
CIE-LABlab(48.37, 69.52, -22.86)
CIE-LCHlch(48.37, 73.18, 341.80°)
OKLaboklab(58.4% 0.2102 -0.0611)
OKLCHoklch(58.4% 0.219 343.8)
XYZxyz(31.7579, 17.0842, 32.6291)
Luminance0.1708 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2D9B #2DCC5E
analogous
#AE2DCC #CC2D9B #CC2D4B
triadic
#CC2D9B #9BCC2D #2D9BCC
tetradic
#CC2D9B #CCAE2D #2DCC5E #2D4BCC
square
#CC2D9B #CCAE2D #2DCC5E #2D4BCC
split-complementary
#CC2D9B #4BCC2D #2DCCAE
monochromatic
#68174F #9A2275 #CC2D9B #DB5BB4 #E68DCB

Accessibility & contrast

On white

4.76
#CC2D9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#CC2D9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2D9B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2D9B#FFFFFF#000000##FFFFFF
##CC2D9B1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41629E
Deuteranopia (green-blind)
#727C97
Tritanopia (blue-blind)
#DA2C61
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc2d9b;
/* rgb */ color: rgb(204, 45, 155);
/* oklch */ color: oklch(58.4% 0.219 343.8);
Tailwind
colors: {
  custom: {
    50: '#e077b8',
    500: '#cc2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #cc2d9b;
$custom-light: #e077b8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2d9b",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 318.491,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58397,
    "c": 0.21892,
    "h": 343.8
  },
  "luminance": 0.17081
}

Semantic roles & 50–950 ramp

primary
#CC2D9B
secondary
#85D09C
accent
#E77441
background
#FEF7FB
surface
#FDEEF6
border
#D5C9D0
text
#160A11
muted
#847C80

Preview Lab

Preview with #CC2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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