#CC4A7F#CC4A7F

#CC4A7F is a mid, vivid pink. Relative luminance 0.193; OKLCH L 60.0% C 0.171 H 358.4°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#CC4A7F
RGBrgb(204, 74, 127)
HSLhsl(336, 56%, 55%)
HSVhsv(336, 64%, 80%)
CMYKcmyk(0%, 63.7%, 37.7%, 20%)
CIE-LABlab(51.00, 56.05, -2.11)
CIE-LCHlch(51.00, 56.09, 357.85°)
OKLaboklab(60% 0.1713 -0.0048)
OKLCHoklch(60% 0.171 358.4)
XYZxyz(31.1833, 19.2708, 22.1520)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC4A7F #4ACC97
analogous
#CC4AC0 #CC4A7F #CC564A
triadic
#CC4A7F #7FCC4A #4A7FCC
tetradic
#CC4A7F #C0CC4A #4ACC97 #564ACC
square
#CC4A7F #C0CC4A #4ACC97 #564ACC
split-complementary
#CC4A7F #4ACC56 #4AC0CC
monochromatic
#792246 #A93061 #CC4A7F #D97AA1 #E7A9C3

Accessibility & contrast

On white

4.33
#CC4A7F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#CC4A7F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC4A7F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC4A7F#FFFFFF#000000##000000
##CC4A7F1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#616A80
Deuteranopia (green-blind)
#84837C
Tritanopia (blue-blind)
#DC3E5F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc4a7f;
/* rgb */ color: rgb(204, 74, 127);
/* oklch */ color: oklch(60.0% 0.171 358.4);
Tailwind
colors: {
  custom: {
    50: '#e084a4',
    500: '#cc4a7f',
    950: '#000000',
  },
}
SCSS
$custom: #cc4a7f;
$custom-light: #e084a4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc4a7f",
  "rgb": {
    "r": 204,
    "g": 74,
    "b": 127
  },
  "hsl": {
    "h": 335.538,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.6,
    "c": 0.1714,
    "h": 358.4
  },
  "luminance": 0.19267
}

Semantic roles & 50–950 ramp

primary
#CC4A7F
secondary
#9DD4BE
accent
#DFA248
background
#FEF8FA
surface
#FDF0F3
border
#D5CBCD
text
#160B0F
muted
#847C7F

Preview Lab

Preview with #CC4A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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