#D540C8#D540C8

#D540C8 is a light, highly saturated purple. Relative luminance 0.220; OKLCH L 63.4% C 0.234 H 331.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#D540C8
RGBrgb(213, 64, 200)
HSLhsl(305, 64%, 54%)
HSVhsv(305, 70%, 84%)
CMYKcmyk(0%, 70%, 6.1%, 16.5%)
CIE-LABlab(54.01, 71.98, -40.28)
CIE-LCHlch(54.01, 82.48, 330.77°)
OKLaboklab(63.43% 0.206 -0.1107)
OKLCHoklch(63.43% 0.234 331.7)
XYZxyz(39.6993, 21.9862, 56.7853)
Luminance0.2198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540C8 #40D54D
analogous
#9840D5 #D540C8 #D5407E
triadic
#D540C8 #C8D540 #40C8D5
tetradic
#D540C8 #D59840 #40D54D #407ED5
square
#D540C8 #D59840 #40D54D #407ED5
split-complementary
#D540C8 #7ED540 #40D598
monochromatic
#7F1C76 #B127A5 #D540C8 #E072D6 #EBA4E5

Accessibility & contrast

On white

3.89
#D540C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#D540C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540C8
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540C8#FFFFFF#000000##000000
##D540C81.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3674CC
Deuteranopia (green-blind)
#6E89C4
Tritanopia (blue-blind)
#DE5080
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d540c8;
/* rgb */ color: rgb(213, 64, 200);
/* oklch */ color: oklch(63.4% 0.234 331.7);
Tailwind
colors: {
  custom: {
    50: '#e682d9',
    500: '#d540c8',
    950: '#000000',
  },
}
SCSS
$custom: #d540c8;
$custom-light: #e682d9;
$custom-dark: #000000;
JSON
{
  "hex": "#d540c8",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 305.235,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63433,
    "c": 0.23389,
    "h": 331.7
  },
  "luminance": 0.21983
}

Semantic roles & 50–950 ramp

primary
#D540C8
secondary
#99D89E
accent
#E74F41
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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