#D542C7#D542C7

#D542C7 is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.6% C 0.231 H 332.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#D542C7
RGBrgb(213, 66, 199)
HSLhsl(306, 64%, 55%)
HSVhsv(306, 69%, 84%)
CMYKcmyk(0%, 69%, 6.6%, 16.5%)
CIE-LABlab(54.21, 71.14, -39.40)
CIE-LCHlch(54.21, 81.32, 331.02°)
OKLaboklab(63.56% 0.204 -0.1082)
OKLCHoklch(63.56% 0.231 332.1)
XYZxyz(39.6976, 22.1692, 56.2100)
Luminance0.2217 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542C7 #42D550
analogous
#9942D5 #D542C7 #D5427E
triadic
#D542C7 #C7D542 #42C7D5
tetradic
#D542C7 #D59942 #42D550 #427ED5
square
#D542C7 #D59942 #42D550 #427ED5
split-complementary
#D542C7 #7ED542 #42D599
monochromatic
#801C77 #B228A5 #D542C7 #E074D6 #EBA6E5

Accessibility & contrast

On white

3.87
#D542C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#D542C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542C7
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542C7#FFFFFF#000000##000000
##D542C71.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A74CB
Deuteranopia (green-blind)
#7089C3
Tritanopia (blue-blind)
#DE5180
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d542c7;
/* rgb */ color: rgb(213, 66, 199);
/* oklch */ color: oklch(63.6% 0.231 332.1);
Tailwind
colors: {
  custom: {
    50: '#e683d8',
    500: '#d542c7',
    950: '#000000',
  },
}
SCSS
$custom: #d542c7;
$custom-light: #e683d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d542c7",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 305.714,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63557,
    "c": 0.23088,
    "h": 332.1
  },
  "luminance": 0.22166
}

Semantic roles & 50–950 ramp

primary
#D542C7
secondary
#9AD8A0
accent
#E75141
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D542C7

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

Preview Lab → · Contrast checker → · Palette generator →

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