#D542D5#D542D5

#D542D5 is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 64.3% C 0.241 H 327.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#D542D5
RGBrgb(213, 66, 213)
HSLhsl(300, 64%, 55%)
HSVhsv(300, 69%, 84%)
CMYKcmyk(0%, 69%, 0%, 16.5%)
CIE-LABlab(54.92, 73.33, -46.28)
CIE-LCHlch(54.92, 86.71, 327.75°)
OKLaboklab(64.3% 0.2045 -0.1281)
OKLCHoklch(64.3% 0.241 327.9)
XYZxyz(41.3985, 22.8496, 65.1678)
Luminance0.2285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542D5 #42D542
analogous
#8C42D5 #D542D5 #D5428C
triadic
#D542D5 #D5D542 #42D5D5
tetradic
#D542D5 #D58C42 #42D542 #428CD5
square
#D542D5 #D58C42 #42D542 #428CD5
split-complementary
#D542D5 #8CD542 #42D58C
monochromatic
#801C80 #B228B2 #D542D5 #E074E0 #EBA6EB

Accessibility & contrast

On white

3.77
#D542D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#D542D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542D5
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542D5#FFFFFF#000000##000000
##D542D51.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2977D9
Deuteranopia (green-blind)
#688AD1
Tritanopia (blue-blind)
#DC5887
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d542d5;
/* rgb */ color: rgb(213, 66, 213);
/* oklch */ color: oklch(64.3% 0.241 327.9);
Tailwind
colors: {
  custom: {
    50: '#e683e2',
    500: '#d542d5',
    950: '#000000',
  },
}
SCSS
$custom: #d542d5;
$custom-light: #e683e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d542d5",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 300,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.64299,
    "c": 0.24133,
    "h": 327.9
  },
  "luminance": 0.22847
}

Semantic roles & 50–950 ramp

primary
#D542D5
secondary
#9AD89A
accent
#E74141
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D542D5

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

Preview Lab → · Contrast checker → · Palette generator →

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