#DC407F#DC407F

#DC407F is a mid, vivid pink. Relative luminance 0.204; OKLCH L 61.5% C 0.198 H 0.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#DC407F
RGBrgb(220, 64, 127)
HSLhsl(336, 69%, 56%)
HSVhsv(336, 71%, 86%)
CMYKcmyk(0%, 70.9%, 42.3%, 13.7%)
CIE-LABlab(52.31, 64.57, 0.12)
CIE-LCHlch(52.31, 64.57, 0.11°)
OKLaboklab(61.47% 0.198 0.0011)
OKLCHoklch(61.47% 0.198 0.3)
XYZxyz(35.1819, 20.4192, 22.1632)
Luminance0.2041 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC407F #40DC9D
analogous
#DC40CD #DC407F #DC4F40
triadic
#DC407F #7FDC40 #407FDC
tetradic
#DC407F #CDDC40 #40DC9D #4F40DC
square
#DC407F #CDDC40 #40DC9D #4F40DC
split-complementary
#DC407F #40DC4F #40CDDC
monochromatic
#891946 #BC2361 #DC407F #E574A2 #EFA7C4

Accessibility & contrast

On white

4.13
#DC407F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#DC407F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC407F
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC407F#FFFFFF#000000##000000
##DC407F1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#616A81
Deuteranopia (green-blind)
#8B887B
Tritanopia (blue-blind)
#EE2A5A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #dc407f;
/* rgb */ color: rgb(220, 64, 127);
/* oklch */ color: oklch(61.5% 0.198 0.3);
Tailwind
colors: {
  custom: {
    50: '#ec81a3',
    500: '#dc407f',
    950: '#000000',
  },
}
SCSS
$custom: #dc407f;
$custom-light: #ec81a3;
$custom-dark: #000000;
JSON
{
  "hex": "#dc407f",
  "rgb": {
    "r": 220,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 335.769,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61474,
    "c": 0.19797,
    "h": 0.3
  },
  "luminance": 0.20415
}

Semantic roles & 50–950 ramp

primary
#DC407F
secondary
#9BDCC2
accent
#ECA53C
background
#FFF8FA
surface
#FFEFF3
border
#D7CACD
text
#170B0F
muted
#857C7F

Preview Lab

Preview with #DC407F

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

Preview Lab → · Contrast checker → · Palette generator →

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