#CC2D9F#CC2D9F

#CC2D9F is a mid, highly saturated pink. Relative luminance 0.172; OKLCH L 58.6% C 0.221 H 342.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#CC2D9F
RGBrgb(204, 45, 159)
HSLhsl(317, 64%, 49%)
HSVhsv(317, 78%, 80%)
CMYKcmyk(0%, 77.9%, 22.1%, 20%)
CIE-LABlab(48.54, 70.02, -24.98)
CIE-LCHlch(48.54, 74.34, 340.36°)
OKLaboklab(58.58% 0.2108 -0.0671)
OKLCHoklch(58.58% 0.221 342.4)
XYZxyz(32.0994, 17.2208, 34.4276)
Luminance0.1722 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2D9F #2DCC5A
analogous
#AA2DCC #CC2D9F #CC2D50
triadic
#CC2D9F #9FCC2D #2D9FCC
tetradic
#CC2D9F #CCAA2D #2DCC5A #2D50CC
square
#CC2D9F #CCAA2D #2DCC5A #2D50CC
split-complementary
#CC2D9F #50CC2D #2DCCAA
monochromatic
#681751 #9A2278 #CC2D9F #DB5BB7 #E68DCD

Accessibility & contrast

On white

4.73
#CC2D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#CC2D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2D9F
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2D9F#FFFFFF#000000##FFFFFF
##CC2D9F1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E63A2
Deuteranopia (green-blind)
#717C9B
Tritanopia (blue-blind)
#D92F64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc2d9f;
/* rgb */ color: rgb(204, 45, 159);
/* oklch */ color: oklch(58.6% 0.221 342.4);
Tailwind
colors: {
  custom: {
    50: '#e078bb',
    500: '#cc2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #cc2d9f;
$custom-light: #e078bb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2d9f",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 316.981,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58577,
    "c": 0.22125,
    "h": 342.4
  },
  "luminance": 0.17217
}

Semantic roles & 50–950 ramp

primary
#CC2D9F
secondary
#85D09A
accent
#E77041
background
#FEF7FB
surface
#FDEEF6
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CC2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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