#CC2D9D#CC2D9D

#CC2D9D is a mid, highly saturated pink. Relative luminance 0.171; OKLCH L 58.5% C 0.220 H 343.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#CC2D9D
RGBrgb(204, 45, 157)
HSLhsl(318, 64%, 49%)
HSVhsv(318, 78%, 80%)
CMYKcmyk(0%, 77.9%, 23%, 20%)
CIE-LABlab(48.45, 69.77, -23.92)
CIE-LCHlch(48.45, 73.75, 341.07°)
OKLaboklab(58.49% 0.2105 -0.0641)
OKLCHoklch(58.49% 0.22 343.1)
XYZxyz(31.9273, 17.1519, 33.5210)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2D9D #2DCC5C
analogous
#AC2DCC #CC2D9D #CC2D4E
triadic
#CC2D9D #9DCC2D #2D9DCC
tetradic
#CC2D9D #CCAC2D #2DCC5C #2D4ECC
square
#CC2D9D #CCAC2D #2DCC5C #2D4ECC
split-complementary
#CC2D9D #4ECC2D #2DCCAC
monochromatic
#681750 #9A2276 #CC2D9D #DB5BB5 #E68DCC

Accessibility & contrast

On white

4.74
#CC2D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#CC2D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2D9D
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2D9D#FFFFFF#000000##FFFFFF
##CC2D9D1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4062A0
Deuteranopia (green-blind)
#727C99
Tritanopia (blue-blind)
#D92E63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc2d9d;
/* rgb */ color: rgb(204, 45, 157);
/* oklch */ color: oklch(58.5% 0.220 343.1);
Tailwind
colors: {
  custom: {
    50: '#e077ba',
    500: '#cc2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #cc2d9d;
$custom-light: #e077ba;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2d9d",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 317.736,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58486,
    "c": 0.22007,
    "h": 343.1
  },
  "luminance": 0.17148
}

Semantic roles & 50–950 ramp

primary
#CC2D9D
secondary
#85D09B
accent
#E77241
background
#FEF7FB
surface
#FDEEF6
border
#D5C9D0
text
#160A11
muted
#847C80

Preview Lab

Preview with #CC2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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