#D542C5#D542C5

#D542C5 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.5% C 0.229 H 332.7°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#D542C5
RGBrgb(213, 66, 197)
HSLhsl(307, 64%, 55%)
HSVhsv(307, 69%, 84%)
CMYKcmyk(0%, 69%, 7.5%, 16.5%)
CIE-LABlab(54.11, 70.83, -38.40)
CIE-LCHlch(54.11, 80.57, 331.54°)
OKLaboklab(63.46% 0.2038 -0.1053)
OKLCHoklch(63.46% 0.229 332.7)
XYZxyz(39.4670, 22.0770, 54.9951)
Luminance0.2207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542C5 #42D552
analogous
#9C42D5 #D542C5 #D5427B
triadic
#D542C5 #C5D542 #42C5D5
tetradic
#D542C5 #D59C42 #42D552 #427BD5
square
#D542C5 #D59C42 #42D552 #427BD5
split-complementary
#D542C5 #7BD542 #42D59C
monochromatic
#801C75 #B228A3 #D542C5 #E074D4 #EBA6E4

Accessibility & contrast

On white

3.88
#D542C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#D542C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542C5
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542C5#FFFFFF#000000##000000
##D542C51.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B74C9
Deuteranopia (green-blind)
#7189C1
Tritanopia (blue-blind)
#DE507F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d542c5;
/* rgb */ color: rgb(213, 66, 197);
/* oklch */ color: oklch(63.5% 0.229 332.7);
Tailwind
colors: {
  custom: {
    50: '#e683d7',
    500: '#d542c5',
    950: '#000000',
  },
}
SCSS
$custom: #d542c5;
$custom-light: #e683d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d542c5",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 306.531,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63455,
    "c": 0.22943,
    "h": 332.7
  },
  "luminance": 0.22074
}

Semantic roles & 50–950 ramp

primary
#D542C5
secondary
#9AD8A1
accent
#E75341
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D542C5

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

Preview Lab → · Contrast checker → · Palette generator →

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