#DC40B2#DC40B2

#DC40B2 is a light, highly saturated pink. Relative luminance 0.221; OKLCH L 63.4% C 0.223 H 340.8°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#DC40B2
RGBrgb(220, 64, 178)
HSLhsl(316, 69%, 56%)
HSVhsv(316, 71%, 86%)
CMYKcmyk(0%, 70.9%, 19.1%, 13.7%)
CIE-LABlab(54.13, 70.47, -27.28)
CIE-LCHlch(54.13, 75.56, 338.84°)
OKLaboklab(63.41% 0.2105 -0.0735)
OKLCHoklch(63.41% 0.223 340.8)
XYZxyz(39.3856, 22.1006, 44.3025)
Luminance0.2210 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC40B2 #40DC6A
analogous
#B840DC #DC40B2 #DC4064
triadic
#DC40B2 #B2DC40 #40B2DC
tetradic
#DC40B2 #DCB840 #40DC6A #4064DC
square
#DC40B2 #DCB840 #40DC6A #4064DC
split-complementary
#DC40B2 #64DC40 #40DCB8
monochromatic
#89196B #BC2393 #DC40B2 #E574C7 #EFA7DC

Accessibility & contrast

On white

3.87
#DC40B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#DC40B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC40B2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC40B2#FFFFFF#000000##000000
##DC40B21.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C71B5
Deuteranopia (green-blind)
#7D8AAE
Tritanopia (blue-blind)
#E94474
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #dc40b2;
/* rgb */ color: rgb(220, 64, 178);
/* oklch */ color: oklch(63.4% 0.223 340.8);
Tailwind
colors: {
  custom: {
    50: '#eb82c9',
    500: '#dc40b2',
    950: '#000000',
  },
}
SCSS
$custom: #dc40b2;
$custom-light: #eb82c9;
$custom-dark: #000000;
JSON
{
  "hex": "#dc40b2",
  "rgb": {
    "r": 220,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 316.154,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.63408,
    "c": 0.22294,
    "h": 340.8
  },
  "luminance": 0.22097
}

Semantic roles & 50–950 ramp

primary
#DC40B2
secondary
#9BDCAD
accent
#EC6B3C
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170C13
muted
#857D82

Preview Lab

Preview with #DC40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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