#D542C9#D542C9

#D542C9 is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.7% C 0.232 H 331.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#D542C9
RGBrgb(213, 66, 201)
HSLhsl(305, 64%, 55%)
HSVhsv(305, 69%, 84%)
CMYKcmyk(0%, 69%, 5.6%, 16.5%)
CIE-LABlab(54.30, 71.44, -40.39)
CIE-LCHlch(54.30, 82.07, 330.52°)
OKLaboklab(63.66% 0.2041 -0.1111)
OKLCHoklch(63.66% 0.232 331.4)
XYZxyz(39.9314, 22.2627, 57.4410)
Luminance0.2226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542C9 #42D54E
analogous
#9842D5 #D542C9 #D54280
triadic
#D542C9 #C9D542 #42C9D5
tetradic
#D542C9 #D59842 #42D54E #4280D5
square
#D542C9 #D59842 #42D54E #4280D5
split-complementary
#D542C9 #80D542 #42D598
monochromatic
#801C78 #B228A7 #D542C9 #E074D7 #EBA6E6

Accessibility & contrast

On white

3.85
#D542C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#D542C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542C9
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542C9#FFFFFF#000000##000000
##D542C91.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3875CD
Deuteranopia (green-blind)
#6F89C5
Tritanopia (blue-blind)
#DE5281
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d542c9;
/* rgb */ color: rgb(213, 66, 201);
/* oklch */ color: oklch(63.7% 0.232 331.4);
Tailwind
colors: {
  custom: {
    50: '#e683da',
    500: '#d542c9',
    950: '#000000',
  },
}
SCSS
$custom: #d542c9;
$custom-light: #e683da;
$custom-dark: #000000;
JSON
{
  "hex": "#d542c9",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 304.898,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.6366,
    "c": 0.23235,
    "h": 331.4
  },
  "luminance": 0.2226
}

Semantic roles & 50–950 ramp

primary
#D542C9
secondary
#9AD89F
accent
#E74F41
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C15
muted
#847D83

Preview Lab

Preview with #D542C9

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

Preview Lab → · Contrast checker → · Palette generator →

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