#D540D1#D540D1

#D540D1 is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 63.9% C 0.241 H 329.1°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#D540D1
RGBrgb(213, 64, 209)
HSLhsl(302, 64%, 54%)
HSVhsv(302, 70%, 84%)
CMYKcmyk(0%, 70%, 1.9%, 16.5%)
CIE-LABlab(54.47, 73.37, -44.71)
CIE-LCHlch(54.47, 85.92, 328.65°)
OKLaboklab(63.91% 0.2064 -0.1235)
OKLCHoklch(63.91% 0.241 329.1)
XYZxyz(40.7822, 22.4194, 62.4886)
Luminance0.2242 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540D1 #40D544
analogous
#8F40D5 #D540D1 #D54087
triadic
#D540D1 #D1D540 #40D1D5
tetradic
#D540D1 #D58F40 #40D544 #4087D5
square
#D540D1 #D58F40 #40D544 #4087D5
split-complementary
#D540D1 #87D540 #40D58F
monochromatic
#7F1C7C #B127AD #D540D1 #E072DD #EBA4E9

Accessibility & contrast

On white

3.83
#D540D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#D540D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540D1
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540D1#FFFFFF#000000##000000
##D540D11.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C76D5
Deuteranopia (green-blind)
#6A89CD
Tritanopia (blue-blind)
#DC5484
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d540d1;
/* rgb */ color: rgb(213, 64, 209);
/* oklch */ color: oklch(63.9% 0.241 329.1);
Tailwind
colors: {
  custom: {
    50: '#e682df',
    500: '#d540d1',
    950: '#000000',
  },
}
SCSS
$custom: #d540d1;
$custom-light: #e682df;
$custom-dark: #000000;
JSON
{
  "hex": "#d540d1",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 301.611,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63909,
    "c": 0.24052,
    "h": 329.1
  },
  "luminance": 0.22416
}

Semantic roles & 50–950 ramp

primary
#D540D1
secondary
#99D89A
accent
#E74541
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D540D1

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

Preview Lab → · Contrast checker → · Palette generator →

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