#D540C5#D540C5

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

Color values

HEX#D540C5
RGBrgb(213, 64, 197)
HSLhsl(306, 64%, 54%)
HSVhsv(306, 70%, 84%)
CMYKcmyk(0%, 70%, 7.5%, 16.5%)
CIE-LABlab(53.86, 71.52, -38.78)
CIE-LCHlch(53.86, 81.36, 331.53°)
OKLaboklab(63.28% 0.2058 -0.1064)
OKLCHoklch(63.28% 0.232 332.7)
XYZxyz(39.3522, 21.8474, 54.9569)
Luminance0.2184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540C5 #40D550
analogous
#9B40D5 #D540C5 #D5407B
triadic
#D540C5 #C5D540 #40C5D5
tetradic
#D540C5 #D59B40 #40D550 #407BD5
square
#D540C5 #D59B40 #40D550 #407BD5
split-complementary
#D540C5 #7BD540 #40D59B
monochromatic
#7F1C74 #B127A2 #D540C5 #E072D4 #EBA4E3

Accessibility & contrast

On white

3.91
#D540C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#D540C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540C5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540C5#FFFFFF#000000##000000
##D540C51.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3973C9
Deuteranopia (green-blind)
#7088C1
Tritanopia (blue-blind)
#DE4F7E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d540c5;
/* rgb */ color: rgb(213, 64, 197);
/* oklch */ color: oklch(63.3% 0.232 332.7);
Tailwind
colors: {
  custom: {
    50: '#e682d7',
    500: '#d540c5',
    950: '#000000',
  },
}
SCSS
$custom: #d540c5;
$custom-light: #e682d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d540c5",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 306.443,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63279,
    "c": 0.23171,
    "h": 332.7
  },
  "luminance": 0.21844
}

Semantic roles & 50–950 ramp

primary
#D540C5
secondary
#99D8A0
accent
#E75341
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D540C5

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

Preview Lab → · Contrast checker → · Palette generator →

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