#D540D7#D540D7

#D540D7 is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 64.2% C 0.245 H 327.4°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#D540D7
RGBrgb(213, 64, 215)
HSLhsl(299, 65%, 55%)
HSVhsv(299, 70%, 84%)
CMYKcmyk(0.9%, 70.2%, 0%, 15.7%)
CIE-LABlab(54.78, 74.33, -47.62)
CIE-LCHlch(54.78, 88.28, 327.35°)
OKLaboklab(64.24% 0.2065 -0.132)
OKLCHoklch(64.24% 0.245 327.4)
XYZxyz(41.5391, 22.7221, 66.4747)
Luminance0.2272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540D7 #42D740
analogous
#8940D7 #D540D7 #D7408E
triadic
#D540D7 #D7D540 #40D7D5
tetradic
#D540D7 #D78940 #42D740 #408ED7
square
#D540D7 #D78940 #42D740 #408ED7
split-complementary
#D540D7 #8ED740 #40D789
monochromatic
#801B81 #B226B4 #D540D7 #E073E2 #EBA5EC

Accessibility & contrast

On white

3.79
#D540D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#D540D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540D7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540D7#FFFFFF#000000##000000
##D540D71.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2277DB
Deuteranopia (green-blind)
#668AD3
Tritanopia (blue-blind)
#DB5788
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d540d7;
/* rgb */ color: rgb(213, 64, 215);
/* oklch */ color: oklch(64.2% 0.245 327.4);
Tailwind
colors: {
  custom: {
    50: '#e682e4',
    500: '#d540d7',
    950: '#000000',
  },
}
SCSS
$custom: #d540d7;
$custom-light: #e682e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d540d7",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 299.205,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.64238,
    "c": 0.24504,
    "h": 327.4
  },
  "luminance": 0.22719
}

Semantic roles & 50–950 ramp

primary
#D540D7
secondary
#9AD99A
accent
#E83F42
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C15
muted
#847D84

Preview Lab

Preview with #D540D7

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

Preview Lab → · Contrast checker → · Palette generator →

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