#D540D2#D540D2

#D540D2 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 64.0% C 0.241 H 328.8°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#D540D2
RGBrgb(213, 64, 210)
HSLhsl(301, 64%, 54%)
HSVhsv(301, 70%, 84%)
CMYKcmyk(0%, 70%, 1.4%, 16.5%)
CIE-LABlab(54.52, 73.53, -45.19)
CIE-LCHlch(54.52, 86.31, 328.42°)
OKLaboklab(63.96% 0.2064 -0.1249)
OKLCHoklch(63.96% 0.241 328.8)
XYZxyz(40.9064, 22.4691, 63.1427)
Luminance0.2247 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540D2 #40D543
analogous
#8E40D5 #D540D2 #D54088
triadic
#D540D2 #D2D540 #40D2D5
tetradic
#D540D2 #D58E40 #40D543 #4088D5
square
#D540D2 #D58E40 #40D543 #4088D5
split-complementary
#D540D2 #88D540 #40D58E
monochromatic
#7F1C7D #B127AE #D540D2 #E072DE #EBA4EA

Accessibility & contrast

On white

3.82
#D540D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#D540D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540D2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540D2#FFFFFF#000000##000000
##D540D21.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A76D6
Deuteranopia (green-blind)
#6989CE
Tritanopia (blue-blind)
#DC5585
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d540d2;
/* rgb */ color: rgb(213, 64, 210);
/* oklch */ color: oklch(64.0% 0.241 328.8);
Tailwind
colors: {
  custom: {
    50: '#e682e0',
    500: '#d540d2',
    950: '#000000',
  },
}
SCSS
$custom: #d540d2;
$custom-light: #e682e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d540d2",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 301.208,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63964,
    "c": 0.24127,
    "h": 328.8
  },
  "luminance": 0.22466
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540D2

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

Preview Lab → · Contrast checker → · Palette generator →

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