#D540C7#D540C7

#D540C7 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.4% C 0.233 H 332.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#D540C7
RGBrgb(213, 64, 199)
HSLhsl(306, 64%, 54%)
HSVhsv(306, 70%, 84%)
CMYKcmyk(0%, 70%, 6.6%, 16.5%)
CIE-LABlab(53.96, 71.82, -39.78)
CIE-LCHlch(53.96, 82.10, 331.02°)
OKLaboklab(63.38% 0.206 -0.1093)
OKLCHoklch(63.38% 0.233 332)
XYZxyz(39.5828, 21.9396, 56.1718)
Luminance0.2194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540C7 #40D54E
analogous
#9940D5 #D540C7 #D5407C
triadic
#D540C7 #C7D540 #40C7D5
tetradic
#D540C7 #D59940 #40D54E #407CD5
square
#D540C7 #D59940 #40D54E #407CD5
split-complementary
#D540C7 #7CD540 #40D599
monochromatic
#7F1C75 #B127A4 #D540C7 #E072D6 #EBA4E4

Accessibility & contrast

On white

3.90
#D540C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#D540C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540C7
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540C7#FFFFFF#000000##000000
##D540C71.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3774CB
Deuteranopia (green-blind)
#6F88C3
Tritanopia (blue-blind)
#DE507F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d540c7;
/* rgb */ color: rgb(213, 64, 199);
/* oklch */ color: oklch(63.4% 0.233 332.0);
Tailwind
colors: {
  custom: {
    50: '#e682d8',
    500: '#d540c7',
    950: '#000000',
  },
}
SCSS
$custom: #d540c7;
$custom-light: #e682d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d540c7",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 305.638,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63381,
    "c": 0.23316,
    "h": 332
  },
  "luminance": 0.21936
}

Semantic roles & 50–950 ramp

primary
#D540C7
secondary
#99D89F
accent
#E75041
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D540C7

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

Preview Lab → · Contrast checker → · Palette generator →

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