#D540D6#D540D6

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

Color values

HEX#D540D6
RGBrgb(213, 64, 214)
HSLhsl(300, 65%, 55%)
HSVhsv(300, 70%, 84%)
CMYKcmyk(0.5%, 70.1%, 0%, 16.1%)
CIE-LABlab(54.73, 74.17, -47.14)
CIE-LCHlch(54.73, 87.88, 327.56°)
OKLaboklab(64.18% 0.2065 -0.1306)
OKLCHoklch(64.18% 0.244 327.7)
XYZxyz(41.4110, 22.6709, 65.8001)
Luminance0.2267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540D6 #41D640
analogous
#8A40D6 #D540D6 #D6408C
triadic
#D540D6 #D6D540 #40D6D5
tetradic
#D540D6 #D68A40 #41D640 #408CD6
square
#D540D6 #D68A40 #41D640 #408CD6
split-complementary
#D540D6 #8CD640 #40D68A
monochromatic
#7F1B80 #B226B2 #D540D6 #E072E1 #EBA5EC

Accessibility & contrast

On white

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

On black

5.53
#D540D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540D6
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540D6#FFFFFF#000000##000000
##D540D61.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2477DA
Deuteranopia (green-blind)
#678AD2
Tritanopia (blue-blind)
#DB5787
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d540d6;
/* rgb */ color: rgb(213, 64, 214);
/* oklch */ color: oklch(64.2% 0.244 327.7);
Tailwind
colors: {
  custom: {
    50: '#e682e3',
    500: '#d540d6',
    950: '#000000',
  },
}
SCSS
$custom: #d540d6;
$custom-light: #e682e3;
$custom-dark: #000000;
JSON
{
  "hex": "#d540d6",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 299.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.64183,
    "c": 0.24429,
    "h": 327.7
  },
  "luminance": 0.22668
}

Semantic roles & 50–950 ramp

primary
#D540D6
secondary
#9AD999
accent
#E84041
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D540D6

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

Preview Lab → · Contrast checker → · Palette generator →

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