#D540C2#D540C2

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

Color values

HEX#D540C2
RGBrgb(213, 64, 194)
HSLhsl(308, 64%, 54%)
HSVhsv(308, 70%, 84%)
CMYKcmyk(0%, 70%, 8.9%, 16.5%)
CIE-LABlab(53.72, 71.07, -37.28)
CIE-LCHlch(53.72, 80.26, 332.32°)
OKLaboklab(63.13% 0.2056 -0.1021)
OKLCHoklch(63.13% 0.23 333.6)
XYZxyz(39.0118, 21.7112, 53.1645)
Luminance0.2171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540C2 #40D553
analogous
#9E40D5 #D540C2 #D54078
triadic
#D540C2 #C2D540 #40C2D5
tetradic
#D540C2 #D59E40 #40D553 #4078D5
square
#D540C2 #D59E40 #40D553 #4078D5
split-complementary
#D540C2 #78D540 #40D59E
monochromatic
#7F1C72 #B1279F #D540C2 #E072D2 #EBA4E2

Accessibility & contrast

On white

3.93
#D540C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#D540C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540C2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540C2#FFFFFF#000000##000000
##D540C21.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C73C6
Deuteranopia (green-blind)
#7188BE
Tritanopia (blue-blind)
#DF4D7C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d540c2;
/* rgb */ color: rgb(213, 64, 194);
/* oklch */ color: oklch(63.1% 0.230 333.6);
Tailwind
colors: {
  custom: {
    50: '#e682d5',
    500: '#d540c2',
    950: '#000000',
  },
}
SCSS
$custom: #d540c2;
$custom-light: #e682d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d540c2",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 307.651,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63126,
    "c": 0.22957,
    "h": 333.6
  },
  "luminance": 0.21708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D540C2

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

Preview Lab → · Contrast checker → · Palette generator →

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