#D42EC4#D42EC4

#D42EC4 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.7% C 0.248 H 332.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#D42EC4
RGBrgb(212, 46, 196)
HSLhsl(306, 66%, 51%)
HSVhsv(306, 78%, 83%)
CMYKcmyk(0%, 78.3%, 7.5%, 16.9%)
CIE-LABlab(51.77, 76.53, -41.52)
CIE-LCHlch(51.77, 87.07, 331.52°)
OKLaboklab(61.73% 0.2205 -0.1142)
OKLCHoklch(61.73% 0.248 332.6)
XYZxyz(38.0924, 19.9399, 54.0564)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42EC4 #2ED43E
analogous
#912ED4 #D42EC4 #D42E71
triadic
#D42EC4 #C4D42E #2EC4D4
tetradic
#D42EC4 #D4912E #2ED43E #2E71D4
square
#D42EC4 #D4912E #2ED43E #2E71D4
split-complementary
#D42EC4 #71D42E #2ED491
monochromatic
#701768 #A32297 #D42EC4 #DE61D2 #E994E1

Accessibility & contrast

On white

4.21
#D42EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#D42EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42EC4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42EC4#FFFFFF#000000##000000
##D42EC41.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#226DC8
Deuteranopia (green-blind)
#6884C0
Tritanopia (blue-blind)
#DD4279
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d42ec4;
/* rgb */ color: rgb(212, 46, 196);
/* oklch */ color: oklch(61.7% 0.248 332.6);
Tailwind
colors: {
  custom: {
    50: '#e67ad6',
    500: '#d42ec4',
    950: '#000000',
  },
}
SCSS
$custom: #d42ec4;
$custom-light: #e67ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#d42ec4",
  "rgb": {
    "r": 212,
    "g": 46,
    "b": 196
  },
  "hsl": {
    "h": 305.783,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.61727,
    "c": 0.24833,
    "h": 332.6
  },
  "luminance": 0.19937
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D42EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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