#D42EC2#D42EC2

#D42EC2 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.6% C 0.247 H 333.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#D42EC2
RGBrgb(212, 46, 194)
HSLhsl(307, 66%, 51%)
HSVhsv(307, 78%, 83%)
CMYKcmyk(0%, 78.3%, 8.5%, 16.9%)
CIE-LABlab(51.67, 76.24, -40.53)
CIE-LCHlch(51.67, 86.35, 332.01°)
OKLaboklab(61.62% 0.2205 -0.1113)
OKLCHoklch(61.62% 0.247 333.2)
XYZxyz(37.8663, 19.8494, 52.8655)
Luminance0.1985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42EC2 #2ED440
analogous
#932ED4 #D42EC2 #D42E6F
triadic
#D42EC2 #C2D42E #2EC2D4
tetradic
#D42EC2 #D4932E #2ED440 #2E6FD4
square
#D42EC2 #D4932E #2ED440 #2E6FD4
split-complementary
#D42EC2 #6FD42E #2ED493
monochromatic
#701767 #A32295 #D42EC2 #DE61D1 #E994E0

Accessibility & contrast

On white

4.23
#D42EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#D42EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42EC2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42EC2#FFFFFF#000000##000000
##D42EC21.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#256CC6
Deuteranopia (green-blind)
#6983BE
Tritanopia (blue-blind)
#DE4177
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d42ec2;
/* rgb */ color: rgb(212, 46, 194);
/* oklch */ color: oklch(61.6% 0.247 333.2);
Tailwind
colors: {
  custom: {
    50: '#e67ad5',
    500: '#d42ec2',
    950: '#000000',
  },
}
SCSS
$custom: #d42ec2;
$custom-light: #e67ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#d42ec2",
  "rgb": {
    "r": 212,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 306.506,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.6162,
    "c": 0.24698,
    "h": 333.2
  },
  "luminance": 0.19846
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D42EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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