#DC40CD#DC40CD

#DC40CD is a light, highly saturated purple. Relative luminance 0.233; OKLCH L 64.7% C 0.241 H 332.2°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#DC40CD
RGBrgb(220, 64, 205)
HSLhsl(306, 69%, 56%)
HSVhsv(306, 71%, 86%)
CMYKcmyk(0%, 70.9%, 6.8%, 13.7%)
CIE-LABlab(55.37, 74.30, -40.92)
CIE-LCHlch(55.37, 84.83, 331.16°)
OKLaboklab(64.71% 0.2133 -0.1124)
OKLCHoklch(64.71% 0.241 332.2)
XYZxyz(42.3681, 23.2937, 60.0104)
Luminance0.2329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC40CD #40DC4F
analogous
#9D40DC #DC40CD #DC407F
triadic
#DC40CD #CDDC40 #40CDDC
tetradic
#DC40CD #DC9D40 #40DC4F #407FDC
square
#DC40CD #DC9D40 #40DC4F #407FDC
split-complementary
#DC40CD #7FDC40 #40DC9D
monochromatic
#89197E #BC23AE #DC40CD #E574DB #EFA7E8

Accessibility & contrast

On white

3.71
#DC40CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#DC40CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC40CD
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC40CD#FFFFFF#000000##000000
##DC40CD1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3777D1
Deuteranopia (green-blind)
#728CC9
Tritanopia (blue-blind)
#E55182
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #dc40cd;
/* rgb */ color: rgb(220, 64, 205);
/* oklch */ color: oklch(64.7% 0.241 332.2);
Tailwind
colors: {
  custom: {
    50: '#eb83dd',
    500: '#dc40cd',
    950: '#000000',
  },
}
SCSS
$custom: #dc40cd;
$custom-light: #eb83dd;
$custom-dark: #000000;
JSON
{
  "hex": "#dc40cd",
  "rgb": {
    "r": 220,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 305.769,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.64708,
    "c": 0.24113,
    "h": 332.2
  },
  "luminance": 0.2329
}

Semantic roles & 50–950 ramp

primary
#DC40CD
secondary
#9BDCA2
accent
#EC4D3C
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #DC40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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