#D540CD#D540CD

#D540CD is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.7% C 0.238 H 330.3°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#D540CD
RGBrgb(213, 64, 205)
HSLhsl(303, 64%, 54%)
HSVhsv(303, 70%, 84%)
CMYKcmyk(0%, 70%, 3.8%, 16.5%)
CIE-LABlab(54.26, 72.75, -42.75)
CIE-LCHlch(54.26, 84.38, 329.56°)
OKLaboklab(63.7% 0.2063 -0.1179)
OKLCHoklch(63.7% 0.238 330.3)
XYZxyz(40.2932, 22.2238, 59.9132)
Luminance0.2222 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540CD #40D548
analogous
#9240D5 #D540CD #D54083
triadic
#D540CD #CDD540 #40CDD5
tetradic
#D540CD #D59240 #40D548 #4083D5
square
#D540CD #D59240 #40D548 #4083D5
split-complementary
#D540CD #83D540 #40D592
monochromatic
#7F1C79 #B127A9 #D540CD #E072DA #EBA4E7

Accessibility & contrast

On white

3.86
#D540CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#D540CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540CD
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540CD#FFFFFF#000000##000000
##D540CD1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3175D1
Deuteranopia (green-blind)
#6C89C9
Tritanopia (blue-blind)
#DD5382
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d540cd;
/* rgb */ color: rgb(213, 64, 205);
/* oklch */ color: oklch(63.7% 0.238 330.3);
Tailwind
colors: {
  custom: {
    50: '#e682dd',
    500: '#d540cd',
    950: '#000000',
  },
}
SCSS
$custom: #d540cd;
$custom-light: #e682dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d540cd",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 303.221,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63695,
    "c": 0.23755,
    "h": 330.3
  },
  "luminance": 0.22221
}

Semantic roles & 50–950 ramp

primary
#D540CD
secondary
#99D89C
accent
#E74A41
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D540CD

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

Preview Lab → · Contrast checker → · Palette generator →

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