#D540CE#D540CE

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

Color values

HEX#D540CE
RGBrgb(213, 64, 206)
HSLhsl(303, 64%, 54%)
HSVhsv(303, 70%, 84%)
CMYKcmyk(0%, 70%, 3.3%, 16.5%)
CIE-LABlab(54.31, 72.90, -43.24)
CIE-LCHlch(54.31, 84.76, 329.33°)
OKLaboklab(63.75% 0.2063 -0.1193)
OKLCHoklch(63.75% 0.238 330)
XYZxyz(40.4143, 22.2722, 60.5509)
Luminance0.2227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540CE #40D547
analogous
#9240D5 #D540CE #D54084
triadic
#D540CE #CED540 #40CED5
tetradic
#D540CE #D59240 #40D547 #4084D5
square
#D540CE #D59240 #40D547 #4084D5
split-complementary
#D540CE #84D540 #40D592
monochromatic
#7F1C7A #B127AA #D540CE #E072DB #EBA4E8

Accessibility & contrast

On white

3.85
#D540CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#D540CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540CE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540CE#FFFFFF#000000##000000
##D540CE1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F75D2
Deuteranopia (green-blind)
#6B89CA
Tritanopia (blue-blind)
#DD5383
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d540ce;
/* rgb */ color: rgb(213, 64, 206);
/* oklch */ color: oklch(63.7% 0.238 330.0);
Tailwind
colors: {
  custom: {
    50: '#e682dd',
    500: '#d540ce',
    950: '#000000',
  },
}
SCSS
$custom: #d540ce;
$custom-light: #e682dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d540ce",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 302.819,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63748,
    "c": 0.23829,
    "h": 330
  },
  "luminance": 0.22269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540CE

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

Preview Lab → · Contrast checker → · Palette generator →

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