#CC407C#CC407C

#CC407C is a mid, vivid pink. Relative luminance 0.180; OKLCH L 58.8% C 0.183 H 358.1°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#CC407C
RGBrgb(204, 64, 124)
HSLhsl(334, 58%, 53%)
HSVhsv(334, 69%, 80%)
CMYKcmyk(0%, 68.6%, 39.2%, 20%)
CIE-LABlab(49.45, 59.73, -2.58)
CIE-LCHlch(49.45, 59.78, 357.52°)
OKLaboklab(58.82% 0.183 -0.006)
OKLCHoklch(58.82% 0.183 358.1)
XYZxyz(30.3753, 17.9630, 20.9325)
Luminance0.1796 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC407C #40CC90
analogous
#CC40C2 #CC407C #CC4A40
triadic
#CC407C #7CCC40 #407CCC
tetradic
#CC407C #C2CC40 #40CC90 #4A40CC
square
#CC407C #C2CC40 #40CC90 #4A40CC
split-complementary
#CC407C #40CC4A #40C2CC
monochromatic
#731F43 #A32C5F #CC407C #D9709D #E6A1BE

Accessibility & contrast

On white

4.57
#CC407C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#CC407C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC407C
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC407C#FFFFFF#000000##000000
##CC407C1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B657E
Deuteranopia (green-blind)
#817F79
Tritanopia (blue-blind)
#DC3059
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc407c;
/* rgb */ color: rgb(204, 64, 124);
/* oklch */ color: oklch(58.8% 0.183 358.1);
Tailwind
colors: {
  custom: {
    50: '#e07fa1',
    500: '#cc407c',
    950: '#000000',
  },
}
SCSS
$custom: #cc407c;
$custom-light: #e07fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc407c",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 334.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58822,
    "c": 0.1831,
    "h": 358.1
  },
  "luminance": 0.17959
}

Semantic roles & 50–950 ramp

primary
#CC407C
secondary
#95D2B8
accent
#E19F47
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#160B0F
muted
#847C7E

Preview Lab

Preview with #CC407C

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

Preview Lab → · Contrast checker → · Palette generator →

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