#D542CB#D542CB

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

Color values

HEX#D542CB
RGBrgb(213, 66, 203)
HSLhsl(304, 64%, 55%)
HSVhsv(304, 69%, 84%)
CMYKcmyk(0%, 69%, 4.7%, 16.5%)
CIE-LABlab(54.40, 71.75, -41.38)
CIE-LCHlch(54.40, 82.83, 330.03°)
OKLaboklab(63.76% 0.2042 -0.1139)
OKLCHoklch(63.76% 0.234 330.8)
XYZxyz(40.1682, 22.3575, 58.6881)
Luminance0.2235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542CB #42D54C
analogous
#9642D5 #D542CB #D54281
triadic
#D542CB #CBD542 #42CBD5
tetradic
#D542CB #D59642 #42D54C #4281D5
square
#D542CB #D59642 #42D54C #4281D5
split-complementary
#D542CB #81D542 #42D596
monochromatic
#801C79 #B228A9 #D542CB #E074D9 #EBA6E7

Accessibility & contrast

On white

3.84
#D542CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#D542CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542CB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542CB#FFFFFF#000000##000000
##D542CB1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3675CF
Deuteranopia (green-blind)
#6E89C7
Tritanopia (blue-blind)
#DD5382
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d542cb;
/* rgb */ color: rgb(213, 66, 203);
/* oklch */ color: oklch(63.8% 0.234 330.8);
Tailwind
colors: {
  custom: {
    50: '#e683db',
    500: '#d542cb',
    950: '#000000',
  },
}
SCSS
$custom: #d542cb;
$custom-light: #e683db;
$custom-dark: #000000;
JSON
{
  "hex": "#d542cb",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 304.082,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63764,
    "c": 0.23382,
    "h": 330.8
  },
  "luminance": 0.22354
}

Semantic roles & 50–950 ramp

primary
#D542CB
secondary
#9AD89F
accent
#E74C41
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D542CB

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

Preview Lab → · Contrast checker → · Palette generator →

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