#D42EC3#D42EC3

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

Color values

HEX#D42EC3
RGBrgb(212, 46, 195)
HSLhsl(306, 66%, 51%)
HSVhsv(306, 78%, 83%)
CMYKcmyk(0%, 78.3%, 8%, 16.9%)
CIE-LABlab(51.72, 76.39, -41.02)
CIE-LCHlch(51.72, 86.71, 331.76°)
OKLaboklab(61.67% 0.2205 -0.1128)
OKLCHoklch(61.67% 0.248 332.9)
XYZxyz(37.9789, 19.8945, 53.4590)
Luminance0.1989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42EC3 #2ED43F
analogous
#922ED4 #D42EC3 #D42E70
triadic
#D42EC3 #C3D42E #2EC3D4
tetradic
#D42EC3 #D4922E #2ED43F #2E70D4
square
#D42EC3 #D4922E #2ED43F #2E70D4
split-complementary
#D42EC3 #70D42E #2ED492
monochromatic
#701767 #A32296 #D42EC3 #DE61D2 #E994E0

Accessibility & contrast

On white

4.22
#D42EC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#D42EC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42EC3
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42EC3#FFFFFF#000000##000000
##D42EC31.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#236CC7
Deuteranopia (green-blind)
#6983BF
Tritanopia (blue-blind)
#DE4278
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d42ec3;
/* rgb */ color: rgb(212, 46, 195);
/* oklch */ color: oklch(61.7% 0.248 332.9);
Tailwind
colors: {
  custom: {
    50: '#e67ad5',
    500: '#d42ec3',
    950: '#000000',
  },
}
SCSS
$custom: #d42ec3;
$custom-light: #e67ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#d42ec3",
  "rgb": {
    "r": 212,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 306.145,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.61674,
    "c": 0.24765,
    "h": 332.9
  },
  "luminance": 0.19891
}

Semantic roles & 50–950 ramp

primary
#D42EC3
secondary
#8AD492
accent
#E9503F
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D42EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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