#CC5178#CC5178

#CC5178 is a mid, vivid pink. Relative luminance 0.201; OKLCH L 60.6% C 0.160 H 3.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#CC5178
RGBrgb(204, 81, 120)
HSLhsl(341, 55%, 56%)
HSVhsv(341, 60%, 80%)
CMYKcmyk(0%, 60.3%, 41.2%, 20%)
CIE-LABlab(51.93, 52.25, 3.44)
CIE-LCHlch(51.93, 52.36, 3.76°)
OKLaboklab(60.62% 0.1594 0.0095)
OKLCHoklch(60.62% 0.16 3.4)
XYZxyz(31.2365, 20.0818, 19.9969)
Luminance0.2008 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5178 #51CCA5
analogous
#CC51B5 #CC5178 #CC6751
triadic
#CC5178 #78CC51 #5178CC
tetradic
#CC5178 #B5CC51 #51CCA5 #6751CC
square
#CC5178 #B5CC51 #51CCA5 #6751CC
split-complementary
#CC5178 #51CC67 #51B5CC
monochromatic
#7E2541 #AD335A #CC5178 #DA809D #E8B0C1

Accessibility & contrast

On white

4.19
#CC5178 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CC5178 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5178
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5178#FFFFFF#000000##000000
##CC51781.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#696D79
Deuteranopia (green-blind)
#898575
Tritanopia (blue-blind)
#DC4460
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cc5178;
/* rgb */ color: rgb(204, 81, 120);
/* oklch */ color: oklch(60.6% 0.160 3.4);
Tailwind
colors: {
  custom: {
    50: '#e0889e',
    500: '#cc5178',
    950: '#000000',
  },
}
SCSS
$custom: #cc5178;
$custom-light: #e0889e;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5178",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 340.976,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60623,
    "c": 0.15963,
    "h": 3.4
  },
  "luminance": 0.20078
}

Semantic roles & 50–950 ramp

primary
#CC5178
secondary
#A3D6C6
accent
#DEAF4A
background
#FEF8F9
surface
#FCF0F2
border
#D5CBCC
text
#160C0E
muted
#847D7E

Preview Lab

Preview with #CC5178

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

Preview Lab → · Contrast checker → · Palette generator →

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