#D542CC#D542CC

#D542CC is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 63.8% C 0.235 H 330.5°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#D542CC
RGBrgb(213, 66, 204)
HSLhsl(304, 64%, 55%)
HSVhsv(304, 69%, 84%)
CMYKcmyk(0%, 69%, 4.2%, 16.5%)
CIE-LABlab(54.45, 71.91, -41.87)
CIE-LCHlch(54.45, 83.21, 329.79°)
OKLaboklab(63.82% 0.2042 -0.1153)
OKLCHoklch(63.82% 0.235 330.5)
XYZxyz(40.2877, 22.4053, 59.3178)
Luminance0.2240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542CC #42D54B
analogous
#9442D5 #D542CC #D54283
triadic
#D542CC #CCD542 #42CCD5
tetradic
#D542CC #D59442 #42D54B #4283D5
square
#D542CC #D59442 #42D54B #4283D5
split-complementary
#D542CC #83D542 #42D594
monochromatic
#801C7A #B228AA #D542CC #E074DA #EBA6E7

Accessibility & contrast

On white

3.83
#D542CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#D542CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542CC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542CC#FFFFFF#000000##000000
##D542CC1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3575D0
Deuteranopia (green-blind)
#6D89C8
Tritanopia (blue-blind)
#DD5482
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d542cc;
/* rgb */ color: rgb(213, 66, 204);
/* oklch */ color: oklch(63.8% 0.235 330.5);
Tailwind
colors: {
  custom: {
    50: '#e683dc',
    500: '#d542cc',
    950: '#000000',
  },
}
SCSS
$custom: #d542cc;
$custom-light: #e683dc;
$custom-dark: #000000;
JSON
{
  "hex": "#d542cc",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 303.673,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63816,
    "c": 0.23456,
    "h": 330.5
  },
  "luminance": 0.22402
}

Semantic roles & 50–950 ramp

primary
#D542CC
secondary
#9AD89E
accent
#E74B41
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D542CC

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

Preview Lab → · Contrast checker → · Palette generator →

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