#CC397F#CC397F

#CC397F is a mid, vivid pink. Relative luminance 0.173; OKLCH L 58.3% C 0.192 H 355.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#CC397F
RGBrgb(204, 57, 127)
HSLhsl(331, 59%, 51%)
HSVhsv(331, 72%, 80%)
CMYKcmyk(0%, 72.1%, 37.7%, 20%)
CIE-LABlab(48.64, 62.58, -5.60)
CIE-LCHlch(48.64, 62.83, 354.88°)
OKLaboklab(58.25% 0.192 -0.014)
OKLCHoklch(58.25% 0.192 355.8)
XYZxyz(30.1977, 17.2996, 21.8235)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC397F #39CC86
analogous
#CC39C8 #CC397F #CC3C39
triadic
#CC397F #7FCC39 #397FCC
tetradic
#CC397F #C8CC39 #39CC86 #3C39CC
square
#CC397F #C8CC39 #39CC86 #3C39CC
split-complementary
#CC397F #39CC3C #39C8CC
monochromatic
#6E1C43 #9F2961 #CC397F #D96A9E #E59ABE

Accessibility & contrast

On white

4.71
#CC397F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#CC397F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC397F
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC397F#FFFFFF#000000##FFFFFF
##CC397F1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556281
Deuteranopia (green-blind)
#7E7D7C
Tritanopia (blue-blind)
#DC2957
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc397f;
/* rgb */ color: rgb(204, 57, 127);
/* oklch */ color: oklch(58.3% 0.192 355.8);
Tailwind
colors: {
  custom: {
    50: '#e17ba4',
    500: '#cc397f',
    950: '#000000',
  },
}
SCSS
$custom: #cc397f;
$custom-light: #e17ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc397f",
  "rgb": {
    "r": 204,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 331.429,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58252,
    "c": 0.19247,
    "h": 355.8
  },
  "luminance": 0.17296
}

Semantic roles & 50–950 ramp

primary
#CC397F
secondary
#90D1B2
accent
#E29846
background
#FEF8FA
surface
#FDEFF4
border
#D5CACE
text
#160A0F
muted
#847C7F

Preview Lab

Preview with #CC397F

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

Preview Lab → · Contrast checker → · Palette generator →

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