#D42EC5#D42EC5

#D42EC5 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.8% C 0.249 H 332.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#D42EC5
RGBrgb(212, 46, 197)
HSLhsl(305, 66%, 51%)
HSVhsv(305, 78%, 83%)
CMYKcmyk(0%, 78.3%, 7.1%, 16.9%)
CIE-LABlab(51.82, 76.68, -42.02)
CIE-LCHlch(51.82, 87.44, 331.28°)
OKLaboklab(61.78% 0.2205 -0.1157)
OKLCHoklch(61.78% 0.249 332.3)
XYZxyz(38.2066, 19.9855, 54.6579)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42EC5 #2ED43D
analogous
#902ED4 #D42EC5 #D42E72
triadic
#D42EC5 #C5D42E #2EC5D4
tetradic
#D42EC5 #D4902E #2ED43D #2E72D4
square
#D42EC5 #D4902E #2ED43D #2E72D4
split-complementary
#D42EC5 #72D42E #2ED490
monochromatic
#701768 #A32298 #D42EC5 #DE61D3 #E994E1

Accessibility & contrast

On white

4.20
#D42EC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#D42EC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42EC5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42EC5#FFFFFF#000000##000000
##D42EC51.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#206DC9
Deuteranopia (green-blind)
#6884C1
Tritanopia (blue-blind)
#DD4379
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d42ec5;
/* rgb */ color: rgb(212, 46, 197);
/* oklch */ color: oklch(61.8% 0.249 332.3);
Tailwind
colors: {
  custom: {
    50: '#e67ad7',
    500: '#d42ec5',
    950: '#000000',
  },
}
SCSS
$custom: #d42ec5;
$custom-light: #e67ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#d42ec5",
  "rgb": {
    "r": 212,
    "g": 46,
    "b": 197
  },
  "hsl": {
    "h": 305.422,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.61781,
    "c": 0.24901,
    "h": 332.3
  },
  "luminance": 0.19982
}

Semantic roles & 50–950 ramp

primary
#D42EC5
secondary
#8AD491
accent
#E94E3F
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D42EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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