#CC397D#CC397D

#CC397D is a mid, vivid pink. Relative luminance 0.172; OKLCH L 58.2% C 0.192 H 356.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#CC397D
RGBrgb(204, 57, 125)
HSLhsl(332, 59%, 51%)
HSVhsv(332, 72%, 80%)
CMYKcmyk(0%, 72.1%, 38.7%, 20%)
CIE-LABlab(48.57, 62.37, -4.49)
CIE-LCHlch(48.57, 62.53, 355.88°)
OKLaboklab(58.18% 0.1914 -0.011)
OKLCHoklch(58.18% 0.192 356.7)
XYZxyz(30.0687, 17.2480, 21.1438)
Luminance0.1724 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC397D #39CC88
analogous
#CC39C6 #CC397D #CC3E39
triadic
#CC397D #7DCC39 #397DCC
tetradic
#CC397D #C6CC39 #39CC88 #3E39CC
square
#CC397D #C6CC39 #39CC88 #3E39CC
split-complementary
#CC397D #39CC3E #39C6CC
monochromatic
#6E1C42 #9F295F #CC397D #D96A9D #E59ABD

Accessibility & contrast

On white

4.72
#CC397D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#CC397D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC397D
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC397D#FFFFFF#000000##FFFFFF
##CC397D1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#56627F
Deuteranopia (green-blind)
#7E7D7A
Tritanopia (blue-blind)
#DC2856
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc397d;
/* rgb */ color: rgb(204, 57, 125);
/* oklch */ color: oklch(58.2% 0.192 356.7);
Tailwind
colors: {
  custom: {
    50: '#e17ba2',
    500: '#cc397d',
    950: '#000000',
  },
}
SCSS
$custom: #cc397d;
$custom-light: #e17ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc397d",
  "rgb": {
    "r": 204,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 332.245,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58184,
    "c": 0.19168,
    "h": 356.7
  },
  "luminance": 0.17244
}

Semantic roles & 50–950 ramp

primary
#CC397D
secondary
#90D1B3
accent
#E29A46
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#160A0F
muted
#847C7E

Preview Lab

Preview with #CC397D

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

Preview Lab → · Contrast checker → · Palette generator →

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