#DC40C2#DC40C2

#DC40C2 is a light, highly saturated pink. Relative luminance 0.228; OKLCH L 64.2% C 0.233 H 335.5°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#DC40C2
RGBrgb(220, 64, 194)
HSLhsl(310, 69%, 56%)
HSVhsv(310, 71%, 86%)
CMYKcmyk(0%, 70.9%, 11.8%, 13.7%)
CIE-LABlab(54.85, 72.69, -35.44)
CIE-LCHlch(54.85, 80.86, 334.01°)
OKLaboklab(64.16% 0.2125 -0.0967)
OKLCHoklch(64.16% 0.233 335.5)
XYZxyz(41.0867, 22.7811, 53.2618)
Luminance0.2278 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC40C2 #40DC5A
analogous
#A840DC #DC40C2 #DC4074
triadic
#DC40C2 #C2DC40 #40C2DC
tetradic
#DC40C2 #DCA840 #40DC5A #4074DC
square
#DC40C2 #DCA840 #40DC5A #4074DC
split-complementary
#DC40C2 #74DC40 #40DCA8
monochromatic
#891976 #BC23A3 #DC40C2 #E574D3 #EFA7E3

Accessibility & contrast

On white

3.78
#DC40C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#DC40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC40C2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC40C2#FFFFFF#000000##000000
##DC40C21.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4174C6
Deuteranopia (green-blind)
#778CBE
Tritanopia (blue-blind)
#E74B7C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #dc40c2;
/* rgb */ color: rgb(220, 64, 194);
/* oklch */ color: oklch(64.2% 0.233 335.5);
Tailwind
colors: {
  custom: {
    50: '#eb82d5',
    500: '#dc40c2',
    950: '#000000',
  },
}
SCSS
$custom: #dc40c2;
$custom-light: #eb82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#dc40c2",
  "rgb": {
    "r": 220,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 310,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.64156,
    "c": 0.23345,
    "h": 335.5
  },
  "luminance": 0.22777
}

Semantic roles & 50–950 ramp

primary
#DC40C2
secondary
#9BDCA6
accent
#EC593C
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #DC40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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