#D540D8#D540D8

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

Color values

HEX#D540D8
RGBrgb(213, 64, 216)
HSLhsl(299, 66%, 55%)
HSVhsv(299, 70%, 85%)
CMYKcmyk(1.4%, 70.4%, 0%, 15.3%)
CIE-LABlab(54.84, 74.49, -48.11)
CIE-LCHlch(54.84, 88.68, 327.15°)
OKLaboklab(64.29% 0.2065 -0.1334)
OKLCHoklch(64.29% 0.246 327.1)
XYZxyz(41.6680, 22.7737, 67.1535)
Luminance0.2277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540D8 #43D840
analogous
#8940D8 #D540D8 #D8408F
triadic
#D540D8 #D8D540 #40D8D5
tetradic
#D540D8 #D88940 #43D840 #408FD8
square
#D540D8 #D88940 #43D840 #408FD8
split-complementary
#D540D8 #8FD840 #40D889
monochromatic
#811B83 #B325B6 #D540D8 #E073E2 #EBA6ED

Accessibility & contrast

On white

3.78
#D540D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#D540D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540D8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540D8#FFFFFF#000000##000000
##D540D81.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2077DC
Deuteranopia (green-blind)
#668AD4
Tritanopia (blue-blind)
#DB5888
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d540d8;
/* rgb */ color: rgb(213, 64, 216);
/* oklch */ color: oklch(64.3% 0.246 327.1);
Tailwind
colors: {
  custom: {
    50: '#e682e4',
    500: '#d540d8',
    950: '#000000',
  },
}
SCSS
$custom: #d540d8;
$custom-light: #e682e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d540d8",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 298.816,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.64294,
    "c": 0.2458,
    "h": 327.1
  },
  "luminance": 0.22771
}

Semantic roles & 50–950 ramp

primary
#D540D8
secondary
#9BDA9A
accent
#E93F42
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D540D8

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

Preview Lab → · Contrast checker → · Palette generator →

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