#CC317C#CC317C

#CC317C is a mid, vivid pink. Relative luminance 0.165; OKLCH L 57.5% C 0.200 H 356.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CC317C
RGBrgb(204, 49, 124)
HSLhsl(331, 61%, 50%)
HSVhsv(331, 76%, 80%)
CMYKcmyk(0%, 76%, 39.2%, 20%)
CIE-LABlab(47.61, 64.86, -5.30)
CIE-LCHlch(47.61, 65.08, 355.33°)
OKLaboklab(57.47% 0.1993 -0.0131)
OKLCHoklch(57.47% 0.2 356.2)
XYZxyz(29.6403, 16.4930, 20.6875)
Luminance0.1649 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC317C #31CC81
analogous
#CC31CA #CC317C #CC3431
triadic
#CC317C #7CCC31 #317CCC
tetradic
#CC317C #CACC31 #31CC81 #3431CC
square
#CC317C #CACC31 #31CC81 #3431CC
split-complementary
#CC317C #31CC34 #31CACC
monochromatic
#691940 #9B255E #CC317C #D9619B #E592BA

Accessibility & contrast

On white

4.89
#CC317C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#CC317C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC317C
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC317C#FFFFFF#000000##FFFFFF
##CC317C1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515F7E
Deuteranopia (green-blind)
#7C7B78
Tritanopia (blue-blind)
#DD1B52
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #cc317c;
/* rgb */ color: rgb(204, 49, 124);
/* oklch */ color: oklch(57.5% 0.200 356.2);
Tailwind
colors: {
  custom: {
    50: '#e178a1',
    500: '#cc317c',
    950: '#000000',
  },
}
SCSS
$custom: #cc317c;
$custom-light: #e178a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc317c",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 330.968,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57472,
    "c": 0.19976,
    "h": 356.2
  },
  "luminance": 0.16489
}

Semantic roles & 50–950 ramp

primary
#CC317C
secondary
#89D0AE
accent
#E49643
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0F
muted
#847C7E

Preview Lab

Preview with #CC317C

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

Preview Lab → · Contrast checker → · Palette generator →

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