#D42ECB#D42ECB

#D42ECB is a light, highly saturated purple. Relative luminance 0.203; OKLCH L 62.1% C 0.253 H 330.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#D42ECB
RGBrgb(212, 46, 203)
HSLhsl(303, 66%, 51%)
HSVhsv(303, 78%, 83%)
CMYKcmyk(0%, 78.3%, 4.2%, 16.9%)
CIE-LABlab(52.14, 77.56, -44.98)
CIE-LCHlch(52.14, 89.66, 329.89°)
OKLaboklab(62.11% 0.2206 -0.1242)
OKLCHoklch(62.11% 0.253 330.6)
XYZxyz(38.9078, 20.2660, 58.3509)
Luminance0.2026 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42ECB #2ED437
analogous
#8A2ED4 #D42ECB #D42E78
triadic
#D42ECB #CBD42E #2ECBD4
tetradic
#D42ECB #D48A2E #2ED437 #2E78D4
square
#D42ECB #D48A2E #2ED437 #2E78D4
split-complementary
#D42ECB #78D42E #2ED48A
monochromatic
#70176C #A3229C #D42ECB #DE61D8 #E994E4

Accessibility & contrast

On white

4.16
#D42ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#D42ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42ECB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42ECB#FFFFFF#000000##000000
##D42ECB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#136ECF
Deuteranopia (green-blind)
#6584C7
Tritanopia (blue-blind)
#DC467D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d42ecb;
/* rgb */ color: rgb(212, 46, 203);
/* oklch */ color: oklch(62.1% 0.253 330.6);
Tailwind
colors: {
  custom: {
    50: '#e67bdb',
    500: '#d42ecb',
    950: '#000000',
  },
}
SCSS
$custom: #d42ecb;
$custom-light: #e67bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#d42ecb",
  "rgb": {
    "r": 212,
    "g": 46,
    "b": 203
  },
  "hsl": {
    "h": 303.253,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.62108,
    "c": 0.25313,
    "h": 330.6
  },
  "luminance": 0.20263
}

Semantic roles & 50–950 ramp

primary
#D42ECB
secondary
#8AD48E
accent
#E9483F
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D42ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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