#D542D4#D542D4

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

Color values

HEX#D542D4
RGBrgb(213, 66, 212)
HSLhsl(300, 64%, 55%)
HSVhsv(300, 69%, 84%)
CMYKcmyk(0%, 69%, 0.5%, 16.5%)
CIE-LABlab(54.86, 73.17, -45.79)
CIE-LCHlch(54.86, 86.32, 327.96°)
OKLaboklab(64.24% 0.2045 -0.1267)
OKLCHoklch(64.24% 0.241 328.2)
XYZxyz(41.2720, 22.7990, 64.5014)
Luminance0.2280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542D4 #42D543
analogous
#8C42D5 #D542D4 #D5428B
triadic
#D542D4 #D4D542 #42D4D5
tetradic
#D542D4 #D58C42 #42D543 #428BD5
square
#D542D4 #D58C42 #42D543 #428BD5
split-complementary
#D542D4 #8BD542 #42D58C
monochromatic
#801C7F #B228B1 #D542D4 #E074DF #EBA6EB

Accessibility & contrast

On white

3.78
#D542D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#D542D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542D4
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542D4#FFFFFF#000000##000000
##D542D41.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B77D8
Deuteranopia (green-blind)
#698AD0
Tritanopia (blue-blind)
#DC5787
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d542d4;
/* rgb */ color: rgb(213, 66, 212);
/* oklch */ color: oklch(64.2% 0.241 328.2);
Tailwind
colors: {
  custom: {
    50: '#e683e2',
    500: '#d542d4',
    950: '#000000',
  },
}
SCSS
$custom: #d542d4;
$custom-light: #e683e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d542d4",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 300.408,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.64244,
    "c": 0.24057,
    "h": 328.2
  },
  "luminance": 0.22796
}

Semantic roles & 50–950 ramp

primary
#D542D4
secondary
#9AD89B
accent
#E74241
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D542D4

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

Preview Lab → · Contrast checker → · Palette generator →

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