#D540D9#D540D9

#D540D9 is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 64.3% C 0.247 H 326.9°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#D540D9
RGBrgb(213, 64, 217)
HSLhsl(298, 67%, 55%)
HSVhsv(298, 71%, 85%)
CMYKcmyk(1.8%, 70.5%, 0%, 14.9%)
CIE-LABlab(54.89, 74.66, -48.59)
CIE-LCHlch(54.89, 89.07, 326.94°)
OKLaboklab(64.35% 0.2065 -0.1348)
OKLCHoklch(64.35% 0.247 326.9)
XYZxyz(41.7976, 22.8256, 67.8365)
Luminance0.2282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540D9 #44D940
analogous
#8840D9 #D540D9 #D94091
triadic
#D540D9 #D9D540 #40D9D5
tetradic
#D540D9 #D98840 #44D940 #4091D9
square
#D540D9 #D98840 #44D940 #4091D9
split-complementary
#D540D9 #91D940 #40D988
monochromatic
#821A84 #B324B7 #D540D9 #E073E3 #EBA6ED

Accessibility & contrast

On white

3.77
#D540D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#D540D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540D9
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540D9#FFFFFF#000000##000000
##D540D91.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E77DD
Deuteranopia (green-blind)
#658AD5
Tritanopia (blue-blind)
#DB5889
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d540d9;
/* rgb */ color: rgb(213, 64, 217);
/* oklch */ color: oklch(64.3% 0.247 326.9);
Tailwind
colors: {
  custom: {
    50: '#e682e5',
    500: '#d540d9',
    950: '#000000',
  },
}
SCSS
$custom: #d540d9;
$custom-light: #e682e5;
$custom-dark: #000000;
JSON
{
  "hex": "#d540d9",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 298.431,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6435,
    "c": 0.24657,
    "h": 326.9
  },
  "luminance": 0.22823
}

Semantic roles & 50–950 ramp

primary
#D540D9
secondary
#9CDA9A
accent
#EA3E43
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D540D9

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

Preview Lab → · Contrast checker → · Palette generator →

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