#CC397E#CC397E

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

Color values

HEX#CC397E
RGBrgb(204, 57, 126)
HSLhsl(332, 59%, 51%)
HSVhsv(332, 72%, 80%)
CMYKcmyk(0%, 72.1%, 38.2%, 20%)
CIE-LABlab(48.60, 62.47, -5.05)
CIE-LCHlch(48.60, 62.68, 355.38°)
OKLaboklab(58.22% 0.1917 -0.0125)
OKLCHoklch(58.22% 0.192 356.3)
XYZxyz(30.1329, 17.2737, 21.4820)
Luminance0.1727 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC397E #39CC87
analogous
#CC39C7 #CC397E #CC3D39
triadic
#CC397E #7ECC39 #397ECC
tetradic
#CC397E #C7CC39 #39CC87 #3D39CC
square
#CC397E #C7CC39 #39CC87 #3D39CC
split-complementary
#CC397E #39CC3D #39C7CC
monochromatic
#6E1C43 #9F2960 #CC397E #D96A9E #E59ABD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC397E#FFFFFF#000000##FFFFFF
##CC397E1.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566280
Deuteranopia (green-blind)
#7E7D7B
Tritanopia (blue-blind)
#DC2857
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc397e;
/* rgb */ color: rgb(204, 57, 126);
/* oklch */ color: oklch(58.2% 0.192 356.3);
Tailwind
colors: {
  custom: {
    50: '#e17ba3',
    500: '#cc397e',
    950: '#000000',
  },
}
SCSS
$custom: #cc397e;
$custom-light: #e17ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc397e",
  "rgb": {
    "r": 204,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 331.837,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58218,
    "c": 0.19207,
    "h": 356.3
  },
  "luminance": 0.1727
}

Semantic roles & 50–950 ramp

primary
#CC397E
secondary
#90D1B2
accent
#E29946
background
#FEF8FA
surface
#FDEFF3
border
#D5CACD
text
#160A0F
muted
#847C7F

Preview Lab

Preview with #CC397E

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

Preview Lab → · Contrast checker → · Palette generator →

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