#D540C6#D540C6

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

Color values

HEX#D540C6
RGBrgb(213, 64, 198)
HSLhsl(306, 64%, 54%)
HSVhsv(306, 70%, 84%)
CMYKcmyk(0%, 70%, 7%, 16.5%)
CIE-LABlab(53.91, 71.67, -39.28)
CIE-LCHlch(53.91, 81.73, 331.27°)
OKLaboklab(63.33% 0.2059 -0.1079)
OKLCHoklch(63.33% 0.232 332.4)
XYZxyz(39.4671, 21.8933, 55.5623)
Luminance0.2189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540C6 #40D54F
analogous
#9940D5 #D540C6 #D5407C
triadic
#D540C6 #C6D540 #40C6D5
tetradic
#D540C6 #D59940 #40D54F #407CD5
square
#D540C6 #D59940 #40D54F #407CD5
split-complementary
#D540C6 #7CD540 #40D599
monochromatic
#7F1C75 #B127A3 #D540C6 #E072D5 #EBA4E4

Accessibility & contrast

On white

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

On black

5.38
#D540C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540C6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540C6#FFFFFF#000000##000000
##D540C61.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3873CA
Deuteranopia (green-blind)
#6F88C2
Tritanopia (blue-blind)
#DE4F7E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d540c6;
/* rgb */ color: rgb(213, 64, 198);
/* oklch */ color: oklch(63.3% 0.232 332.4);
Tailwind
colors: {
  custom: {
    50: '#e682d8',
    500: '#d540c6',
    950: '#000000',
  },
}
SCSS
$custom: #d540c6;
$custom-light: #e682d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d540c6",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 306.04,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.6333,
    "c": 0.23244,
    "h": 332.4
  },
  "luminance": 0.2189
}

Semantic roles & 50–950 ramp

primary
#D540C6
secondary
#99D89F
accent
#E75241
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D540C6

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

Preview Lab → · Contrast checker → · Palette generator →

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