#DC42DC#DC42DC

#DC42DC is a light, highly saturated purple. Relative luminance 0.243; OKLCH L 65.7% C 0.250 H 328.0°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#DC42DC
RGBrgb(220, 66, 220)
HSLhsl(300, 69%, 56%)
HSVhsv(300, 70%, 86%)
CMYKcmyk(0%, 70%, 0%, 13.7%)
CIE-LABlab(56.37, 75.97, -47.88)
CIE-LCHlch(56.37, 89.79, 327.78°)
OKLaboklab(65.67% 0.2119 -0.1326)
OKLCHoklch(65.67% 0.25 328)
XYZxyz(44.3811, 24.2825, 70.0457)
Luminance0.2428 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC42DC #42DC42
analogous
#8F42DC #DC42DC #DC428F
triadic
#DC42DC #DCDC42 #42DCDC
tetradic
#DC42DC #DC8F42 #42DC42 #428FDC
square
#DC42DC #DC8F42 #42DC42 #428FDC
split-complementary
#DC42DC #8FDC42 #42DC8F
monochromatic
#8A1A8A #BE23BE #DC42DC #E676E6 #EFA9EF

Accessibility & contrast

On white

3.59
#DC42DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#DC42DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC42DC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC42DC#FFFFFF#000000##000000
##DC42DC1.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#267AE0
Deuteranopia (green-blind)
#6B8ED8
Tritanopia (blue-blind)
#E3598B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #dc42dc;
/* rgb */ color: rgb(220, 66, 220);
/* oklch */ color: oklch(65.7% 0.250 328.0);
Tailwind
colors: {
  custom: {
    50: '#eb84e7',
    500: '#dc42dc',
    950: '#000000',
  },
}
SCSS
$custom: #dc42dc;
$custom-light: #eb84e7;
$custom-dark: #000000;
JSON
{
  "hex": "#dc42dc",
  "rgb": {
    "r": 220,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 300,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.65671,
    "c": 0.24996,
    "h": 328
  },
  "luminance": 0.24279
}

Semantic roles & 50–950 ramp

primary
#DC42DC
secondary
#9DDD9D
accent
#EC3C3C
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #DC42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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