#D542C2#D542C2

#D542C2 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.3% C 0.227 H 333.6°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#D542C2
RGBrgb(213, 66, 194)
HSLhsl(308, 64%, 55%)
HSVhsv(308, 69%, 84%)
CMYKcmyk(0%, 69%, 8.9%, 16.5%)
CIE-LABlab(53.96, 70.38, -36.90)
CIE-LCHlch(53.96, 79.46, 332.33°)
OKLaboklab(63.3% 0.2036 -0.101)
OKLCHoklch(63.3% 0.227 333.6)
XYZxyz(39.1266, 21.9408, 53.2028)
Luminance0.2194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542C2 #42D555
analogous
#9E42D5 #D542C2 #D54279
triadic
#D542C2 #C2D542 #42C2D5
tetradic
#D542C2 #D59E42 #42D555 #4279D5
square
#D542C2 #D59E42 #42D555 #4279D5
split-complementary
#D542C2 #79D542 #42D59E
monochromatic
#801C73 #B228A0 #D542C2 #E074D2 #EBA6E2

Accessibility & contrast

On white

3.90
#D542C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#D542C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542C2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542C2#FFFFFF#000000##000000
##D542C21.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E73C6
Deuteranopia (green-blind)
#7289BE
Tritanopia (blue-blind)
#DF4F7D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d542c2;
/* rgb */ color: rgb(213, 66, 194);
/* oklch */ color: oklch(63.3% 0.227 333.6);
Tailwind
colors: {
  custom: {
    50: '#e683d5',
    500: '#d542c2',
    950: '#000000',
  },
}
SCSS
$custom: #d542c2;
$custom-light: #e683d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d542c2",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 307.755,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63303,
    "c": 0.22728,
    "h": 333.6
  },
  "luminance": 0.21938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D542C2

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

Preview Lab → · Contrast checker → · Palette generator →

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