#D542E2#D542E2

#D542E2 is a light, highly saturated purple. Relative luminance 0.235; OKLCH L 65.0% C 0.251 H 324.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#D542E2
RGBrgb(213, 66, 226)
HSLhsl(295, 73%, 57%)
HSVhsv(295, 71%, 89%)
CMYKcmyk(5.8%, 70.8%, 0%, 11.4%)
CIE-LABlab(55.62, 75.47, -52.52)
CIE-LCHlch(55.62, 91.95, 325.16°)
OKLaboklab(65.03% 0.2044 -0.1463)
OKLCHoklch(65.03% 0.251 324.4)
XYZxyz(43.1151, 23.5362, 74.2088)
Luminance0.2353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542E2 #4FE242
analogous
#8542E2 #D542E2 #E2429F
triadic
#D542E2 #E2D542 #42E2D5
tetradic
#D542E2 #E28542 #4FE242 #429FE2
square
#D542E2 #E28542 #4FE242 #429FE2
split-complementary
#D542E2 #9FE242 #42E285
monochromatic
#891793 #BA1FC8 #D542E2 #E177EA #EDACF2

Accessibility & contrast

On white

3.68
#D542E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#D542E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542E2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542E2#FFFFFF#000000##000000
##D542E21.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#097AE6
Deuteranopia (green-blind)
#608BDE
Tritanopia (blue-blind)
#D95E8E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d542e2;
/* rgb */ color: rgb(213, 66, 226);
/* oklch */ color: oklch(65.0% 0.251 324.4);
Tailwind
colors: {
  custom: {
    50: '#e684ec',
    500: '#d542e2',
    950: '#000000',
  },
}
SCSS
$custom: #d542e2;
$custom-light: #e684ec;
$custom-dark: #000000;
JSON
{
  "hex": "#d542e2",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 295.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.65029,
    "c": 0.25138,
    "h": 324.4
  },
  "luminance": 0.23534
}

Semantic roles & 50–950 ramp

primary
#D542E2
secondary
#A5E09F
accent
#F03847
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D542E2

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

Preview Lab → · Contrast checker → · Palette generator →

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