#D542C4#D542C4

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

Color values

HEX#D542C4
RGBrgb(213, 66, 196)
HSLhsl(307, 64%, 55%)
HSVhsv(307, 69%, 84%)
CMYKcmyk(0%, 69%, 8%, 16.5%)
CIE-LABlab(54.06, 70.68, -37.90)
CIE-LCHlch(54.06, 80.20, 331.80°)
OKLaboklab(63.4% 0.2037 -0.1039)
OKLCHoklch(63.4% 0.229 333)
XYZxyz(39.3528, 22.0313, 54.3937)
Luminance0.2203 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542C4 #42D553
analogous
#9D42D5 #D542C4 #D5427A
triadic
#D542C4 #C4D542 #42C4D5
tetradic
#D542C4 #D59D42 #42D553 #427AD5
square
#D542C4 #D59D42 #42D553 #427AD5
split-complementary
#D542C4 #7AD542 #42D59D
monochromatic
#801C75 #B228A2 #D542C4 #E074D4 #EBA6E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D542C4#FFFFFF#000000##000000
##D542C41.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)
#3C74C8
Deuteranopia (green-blind)
#7189C0
Tritanopia (blue-blind)
#DE507E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d542c4;
/* rgb */ color: rgb(213, 66, 196);
/* oklch */ color: oklch(63.4% 0.229 333.0);
Tailwind
colors: {
  custom: {
    50: '#e683d6',
    500: '#d542c4',
    950: '#000000',
  },
}
SCSS
$custom: #d542c4;
$custom-light: #e683d6;
$custom-dark: #000000;
JSON
{
  "hex": "#d542c4",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 306.939,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63404,
    "c": 0.22871,
    "h": 333
  },
  "luminance": 0.22028
}

Semantic roles & 50–950 ramp

primary
#D542C4
secondary
#9AD8A2
accent
#E75441
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D542C4

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

Preview Lab → · Contrast checker → · Palette generator →

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