#DC42D7#DC42D7

#DC42D7 is a light, highly saturated purple. Relative luminance 0.240; OKLCH L 65.4% C 0.246 H 329.3°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#DC42D7
RGBrgb(220, 66, 215)
HSLhsl(302, 69%, 56%)
HSVhsv(302, 70%, 86%)
CMYKcmyk(0%, 70%, 2.3%, 13.7%)
CIE-LABlab(56.11, 75.18, -45.45)
CIE-LCHlch(56.11, 87.85, 328.84°)
OKLaboklab(65.4% 0.2118 -0.1256)
OKLCHoklch(65.4% 0.246 329.3)
XYZxyz(43.7288, 24.0216, 66.6103)
Luminance0.2402 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC42D7 #42DC47
analogous
#9442DC #DC42D7 #DC428A
triadic
#DC42D7 #D7DC42 #42D7DC
tetradic
#DC42D7 #DC9442 #42DC47 #428ADC
square
#DC42D7 #DC9442 #42DC47 #428ADC
split-complementary
#DC42D7 #8ADC42 #42DC94
monochromatic
#8A1A86 #BE23B9 #DC42D7 #E676E2 #EFA9ED

Accessibility & contrast

On white

3.62
#DC42D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#DC42D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC42D7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC42D7#FFFFFF#000000##000000
##DC42D71.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E79DB
Deuteranopia (green-blind)
#6E8ED3
Tritanopia (blue-blind)
#E45788
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #dc42d7;
/* rgb */ color: rgb(220, 66, 215);
/* oklch */ color: oklch(65.4% 0.246 329.3);
Tailwind
colors: {
  custom: {
    50: '#eb84e4',
    500: '#dc42d7',
    950: '#000000',
  },
}
SCSS
$custom: #dc42d7;
$custom-light: #eb84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#dc42d7",
  "rgb": {
    "r": 220,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 301.948,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.654,
    "c": 0.24623,
    "h": 329.3
  },
  "luminance": 0.24018
}

Semantic roles & 50–950 ramp

primary
#DC42D7
secondary
#9DDD9F
accent
#EC423C
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170C15
muted
#857D84

Preview Lab

Preview with #DC42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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