#CC5170#CC5170

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

Color values

HEX#CC5170
RGBrgb(204, 81, 112)
HSLhsl(345, 55%, 56%)
HSVhsv(345, 60%, 80%)
CMYKcmyk(0%, 60.3%, 45.1%, 20%)
CIE-LABlab(51.72, 51.43, 7.92)
CIE-LCHlch(51.72, 52.04, 8.76°)
OKLaboklab(60.4% 0.1564 0.0208)
OKLCHoklch(60.4% 0.158 7.6)
XYZxyz(30.7711, 19.8957, 17.5459)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5170 #51CCAD
analogous
#CC51AD #CC5170 #CC6F51
triadic
#CC5170 #70CC51 #5170CC
tetradic
#CC5170 #ADCC51 #51CCAD #6F51CC
square
#CC5170 #ADCC51 #51CCAD #6F51CC
split-complementary
#CC5170 #51CC6F #51ADCC
monochromatic
#7E253B #AD3352 #CC5170 #DA8097 #E8B0BE

Accessibility & contrast

On white

4.22
#CC5170 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC5170#FFFFFF#000000##000000
##CC51701.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc5170;
/* rgb */ color: rgb(204, 81, 112);
/* oklch */ color: oklch(60.4% 0.158 7.6);
Tailwind
colors: {
  custom: {
    50: '#e08798',
    500: '#cc5170',
    950: '#000000',
  },
}
SCSS
$custom: #cc5170;
$custom-light: #e08798;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5170",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 112
  },
  "hsl": {
    "h": 344.878,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60397,
    "c": 0.15781,
    "h": 7.6
  },
  "luminance": 0.19892
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC5170

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

Preview Lab → · Contrast checker → · Palette generator →

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