#D540C1#D540C1

#D540C1 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.1% C 0.229 H 333.9°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#D540C1
RGBrgb(213, 64, 193)
HSLhsl(308, 64%, 54%)
HSVhsv(308, 70%, 84%)
CMYKcmyk(0%, 70%, 9.4%, 16.5%)
CIE-LABlab(53.67, 70.92, -36.78)
CIE-LCHlch(53.67, 79.89, 332.59°)
OKLaboklab(63.08% 0.2055 -0.1007)
OKLCHoklch(63.08% 0.229 333.9)
XYZxyz(38.8999, 21.6665, 52.5750)
Luminance0.2166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540C1 #40D554
analogous
#9F40D5 #D540C1 #D54077
triadic
#D540C1 #C1D540 #40C1D5
tetradic
#D540C1 #D59F40 #40D554 #4077D5
square
#D540C1 #D59F40 #40D554 #4077D5
split-complementary
#D540C1 #77D540 #40D59F
monochromatic
#7F1C71 #B1279E #D540C1 #E072D1 #EBA4E2

Accessibility & contrast

On white

3.94
#D540C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#D540C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540C1
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540C1#FFFFFF#000000##000000
##D540C11.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D72C5
Deuteranopia (green-blind)
#7288BD
Tritanopia (blue-blind)
#DF4D7C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d540c1;
/* rgb */ color: rgb(213, 64, 193);
/* oklch */ color: oklch(63.1% 0.229 333.9);
Tailwind
colors: {
  custom: {
    50: '#e682d4',
    500: '#d540c1',
    950: '#000000',
  },
}
SCSS
$custom: #d540c1;
$custom-light: #e682d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d540c1",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 308.054,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63076,
    "c": 0.22886,
    "h": 333.9
  },
  "luminance": 0.21663
}

Semantic roles & 50–950 ramp

primary
#D540C1
secondary
#99D8A1
accent
#E75741
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D540C1

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

Preview Lab → · Contrast checker → · Palette generator →

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