#D540D5#D540D5

#D540D5 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 64.1% C 0.244 H 328.0°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#D540D5
RGBrgb(213, 64, 213)
HSLhsl(300, 64%, 54%)
HSVhsv(300, 70%, 84%)
CMYKcmyk(0%, 70%, 0%, 16.5%)
CIE-LABlab(54.68, 74.01, -46.65)
CIE-LCHlch(54.68, 87.49, 327.77°)
OKLaboklab(64.13% 0.2064 -0.1292)
OKLCHoklch(64.13% 0.244 328)
XYZxyz(41.2837, 22.6200, 65.1296)
Luminance0.2262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540D5 #40D540
analogous
#8B40D5 #D540D5 #D5408B
triadic
#D540D5 #D5D540 #40D5D5
tetradic
#D540D5 #D58B40 #40D540 #408BD5
square
#D540D5 #D58B40 #40D540 #408BD5
split-complementary
#D540D5 #8BD540 #40D58B
monochromatic
#7F1C7F #B127B1 #D540D5 #E072E0 #EBA4EB

Accessibility & contrast

On white

3.80
#D540D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#D540D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540D5
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540D5#FFFFFF#000000##000000
##D540D51.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2676D9
Deuteranopia (green-blind)
#678AD1
Tritanopia (blue-blind)
#DC5687
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d540d5;
/* rgb */ color: rgb(213, 64, 213);
/* oklch */ color: oklch(64.1% 0.244 328.0);
Tailwind
colors: {
  custom: {
    50: '#e682e2',
    500: '#d540d5',
    950: '#000000',
  },
}
SCSS
$custom: #d540d5;
$custom-light: #e682e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d540d5",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 300,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.64128,
    "c": 0.24353,
    "h": 328
  },
  "luminance": 0.22617
}

Semantic roles & 50–950 ramp

primary
#D540D5
secondary
#99D899
accent
#E74141
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D540D5

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

Preview Lab → · Contrast checker → · Palette generator →

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