#D542D2#D542D2

#D542D2 is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 64.1% C 0.239 H 328.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#D542D2
RGBrgb(213, 66, 210)
HSLhsl(301, 64%, 55%)
HSVhsv(301, 69%, 84%)
CMYKcmyk(0%, 69%, 1.4%, 16.5%)
CIE-LABlab(54.76, 72.85, -44.82)
CIE-LCHlch(54.76, 85.53, 328.40°)
OKLaboklab(64.14% 0.2045 -0.1239)
OKLCHoklch(64.14% 0.239 328.8)
XYZxyz(41.0212, 22.6987, 63.1810)
Luminance0.2270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542D2 #42D545
analogous
#8E42D5 #D542D2 #D54289
triadic
#D542D2 #D2D542 #42D2D5
tetradic
#D542D2 #D58E42 #42D545 #4289D5
square
#D542D2 #D58E42 #42D545 #4289D5
split-complementary
#D542D2 #89D542 #42D58E
monochromatic
#801C7E #B228AF #D542D2 #E074DE #EBA6EA

Accessibility & contrast

On white

3.79
#D542D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#D542D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542D2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542D2#FFFFFF#000000##000000
##D542D21.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D77D6
Deuteranopia (green-blind)
#6A8ACE
Tritanopia (blue-blind)
#DC5686
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d542d2;
/* rgb */ color: rgb(213, 66, 210);
/* oklch */ color: oklch(64.1% 0.239 328.8);
Tailwind
colors: {
  custom: {
    50: '#e683e0',
    500: '#d542d2',
    950: '#000000',
  },
}
SCSS
$custom: #d542d2;
$custom-light: #e683e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d542d2",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 301.224,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.64136,
    "c": 0.23906,
    "h": 328.8
  },
  "luminance": 0.22696
}

Semantic roles & 50–950 ramp

primary
#D542D2
secondary
#9AD89C
accent
#E74541
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D542D2

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

Preview Lab → · Contrast checker → · Palette generator →

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