#CC5171#CC5171

#CC5171 is a mid, vivid pink. Relative luminance 0.199; OKLCH L 60.4% C 0.158 H 7.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#CC5171
RGBrgb(204, 81, 113)
HSLhsl(344, 55%, 56%)
HSVhsv(344, 60%, 80%)
CMYKcmyk(0%, 60.3%, 44.6%, 20%)
CIE-LABlab(51.74, 51.53, 7.36)
CIE-LCHlch(51.74, 52.05, 8.13°)
OKLaboklab(60.42% 0.1568 0.0194)
OKLCHoklch(60.42% 0.158 7)
XYZxyz(30.8271, 19.9181, 17.8408)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5171 #51CCAC
analogous
#CC51AF #CC5171 #CC6E51
triadic
#CC5171 #71CC51 #5171CC
tetradic
#CC5171 #AFCC51 #51CCAC #6E51CC
square
#CC5171 #AFCC51 #51CCAC #6E51CC
split-complementary
#CC5171 #51CC6E #51AFCC
monochromatic
#7E253C #AD3353 #CC5171 #DA8098 #E8B0BE

Accessibility & contrast

On white

4.21
#CC5171 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#CC5171 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5171
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5171#FFFFFF#000000##000000
##CC51711.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A6C72
Deuteranopia (green-blind)
#8A846E
Tritanopia (blue-blind)
#DD415D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc5171;
/* rgb */ color: rgb(204, 81, 113);
/* oklch */ color: oklch(60.4% 0.158 7.0);
Tailwind
colors: {
  custom: {
    50: '#e08799',
    500: '#cc5171',
    950: '#000000',
  },
}
SCSS
$custom: #cc5171;
$custom-light: #e08799;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5171",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 113
  },
  "hsl": {
    "h": 344.39,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60424,
    "c": 0.15799,
    "h": 7
  },
  "luminance": 0.19914
}

Semantic roles & 50–950 ramp

primary
#CC5171
secondary
#A3D6C9
accent
#DEB74A
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0D
muted
#847D7E

Preview Lab

Preview with #CC5171

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

Preview Lab → · Contrast checker → · Palette generator →

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