#D42ED7#D42ED7

#D42ED7 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.8% C 0.262 H 327.3°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#D42ED7
RGBrgb(212, 46, 215)
HSLhsl(299, 68%, 51%)
HSVhsv(299, 79%, 84%)
CMYKcmyk(1.4%, 78.6%, 0%, 15.7%)
CIE-LABlab(52.80, 79.38, -50.80)
CIE-LCHlch(52.80, 94.24, 327.38°)
OKLaboklab(62.79% 0.2202 -0.1411)
OKLCHoklch(62.79% 0.262 327.3)
XYZxyz(40.3935, 20.8603, 66.1757)
Luminance0.2086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42ED7 #31D72E
analogous
#7F2ED7 #D42ED7 #D72E85
triadic
#D42ED7 #D7D42E #2ED7D4
tetradic
#D42ED7 #D77F2E #31D72E #2E85D7
square
#D42ED7 #D77F2E #31D72E #2E85D7
split-complementary
#D42ED7 #85D72E #2ED77F
monochromatic
#731674 #A520A8 #D42ED7 #DF61E1 #E995EB

Accessibility & contrast

On white

4.06
#D42ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#D42ED7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42ED7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42ED7#FFFFFF#000000##000000
##D42ED71.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#5D85D3
Tritanopia (blue-blind)
#DA4D83
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d42ed7;
/* rgb */ color: rgb(212, 46, 215);
/* oklch */ color: oklch(62.8% 0.262 327.3);
Tailwind
colors: {
  custom: {
    50: '#e67be4',
    500: '#d42ed7',
    950: '#000000',
  },
}
SCSS
$custom: #d42ed7;
$custom-light: #e67be4;
$custom-dark: #000000;
JSON
{
  "hex": "#d42ed7",
  "rgb": {
    "r": 212,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 298.935,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.62789,
    "c": 0.26156,
    "h": 327.3
  },
  "luminance": 0.20857
}

Semantic roles & 50–950 ramp

primary
#D42ED7
secondary
#8CD68B
accent
#EB3D40
background
#FEF8FE
surface
#FDEFFC
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #D42ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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