#CC407F#CC407F

#CC407F is a mid, vivid pink. Relative luminance 0.180; OKLCH L 58.9% C 0.184 H 356.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#CC407F
RGBrgb(204, 64, 127)
HSLhsl(333, 58%, 53%)
HSVhsv(333, 69%, 80%)
CMYKcmyk(0%, 68.6%, 37.7%, 20%)
CIE-LABlab(49.54, 60.05, -4.26)
CIE-LCHlch(49.54, 60.20, 355.95°)
OKLaboklab(58.92% 0.184 -0.0104)
OKLCHoklch(58.92% 0.184 356.8)
XYZxyz(30.5680, 18.0401, 21.9469)
Luminance0.1804 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC407F #40CC8D
analogous
#CC40C5 #CC407F #CC4740
triadic
#CC407F #7FCC40 #407FCC
tetradic
#CC407F #C5CC40 #40CC8D #4740CC
square
#CC407F #C5CC40 #40CC8D #4740CC
split-complementary
#CC407F #40CC47 #40C5CC
monochromatic
#731F45 #A32C61 #CC407F #D9709F #E6A1C0

Accessibility & contrast

On white

4.56
#CC407F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#CC407F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC407F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC407F#FFFFFF#000000##000000
##CC407F1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A6581
Deuteranopia (green-blind)
#807F7C
Tritanopia (blue-blind)
#DC325A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc407f;
/* rgb */ color: rgb(204, 64, 127);
/* oklch */ color: oklch(58.9% 0.184 356.8);
Tailwind
colors: {
  custom: {
    50: '#e07fa4',
    500: '#cc407f',
    950: '#000000',
  },
}
SCSS
$custom: #cc407f;
$custom-light: #e07fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc407f",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 333,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58922,
    "c": 0.18425,
    "h": 356.8
  },
  "luminance": 0.18036
}

Semantic roles & 50–950 ramp

primary
#CC407F
secondary
#95D2B7
accent
#E19C47
background
#FEF8FA
surface
#FDEFF3
border
#D5CACD
text
#160B0F
muted
#847C7F

Preview Lab

Preview with #CC407F

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

Preview Lab → · Contrast checker → · Palette generator →

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