#DC42C7#DC42C7

#DC42C7 is a light, highly saturated purple. Relative luminance 0.232; OKLCH L 64.6% C 0.235 H 334.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#DC42C7
RGBrgb(220, 66, 199)
HSLhsl(308, 69%, 56%)
HSVhsv(308, 70%, 86%)
CMYKcmyk(0%, 70%, 9.5%, 13.7%)
CIE-LABlab(55.32, 72.75, -37.57)
CIE-LCHlch(55.32, 81.87, 332.68°)
OKLaboklab(64.57% 0.211 -0.1028)
OKLCHoklch(64.57% 0.235 334)
XYZxyz(41.7726, 23.2391, 56.3073)
Luminance0.2324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC42C7 #42DC57
analogous
#A442DC #DC42C7 #DC427A
triadic
#DC42C7 #C7DC42 #42C7DC
tetradic
#DC42C7 #DCA442 #42DC57 #427ADC
square
#DC42C7 #DCA442 #42DC57 #427ADC
split-complementary
#DC42C7 #7ADC42 #42DCA4
monochromatic
#8A1A7B #BE23A9 #DC42C7 #E676D6 #EFA9E6

Accessibility & contrast

On white

3.72
#DC42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#DC42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC42C7
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC42C7#FFFFFF#000000##000000
##DC42C71.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F76CB
Deuteranopia (green-blind)
#768CC3
Tritanopia (blue-blind)
#E64F80
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #dc42c7;
/* rgb */ color: rgb(220, 66, 199);
/* oklch */ color: oklch(64.6% 0.235 334.0);
Tailwind
colors: {
  custom: {
    50: '#eb84d8',
    500: '#dc42c7',
    950: '#000000',
  },
}
SCSS
$custom: #dc42c7;
$custom-light: #eb84d8;
$custom-dark: #000000;
JSON
{
  "hex": "#dc42c7",
  "rgb": {
    "r": 220,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 308.182,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.64573,
    "c": 0.23468,
    "h": 334
  },
  "luminance": 0.23236
}

Semantic roles & 50–950 ramp

primary
#DC42C7
secondary
#9DDDA6
accent
#EC543C
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #DC42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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