#D540C3#D540C3

#D540C3 is a light, highly saturated purple. Relative luminance 0.218; OKLCH L 63.2% C 0.230 H 333.3°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#D540C3
RGBrgb(213, 64, 195)
HSLhsl(307, 64%, 54%)
HSVhsv(307, 70%, 84%)
CMYKcmyk(0%, 70%, 8.5%, 16.5%)
CIE-LABlab(53.77, 71.22, -37.78)
CIE-LCHlch(53.77, 80.62, 332.05°)
OKLaboklab(63.18% 0.2057 -0.1035)
OKLCHoklch(63.18% 0.23 333.3)
XYZxyz(39.1245, 21.7563, 53.7580)
Luminance0.2175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540C3 #40D552
analogous
#9C40D5 #D540C3 #D54079
triadic
#D540C3 #C3D540 #40C3D5
tetradic
#D540C3 #D59C40 #40D552 #4079D5
square
#D540C3 #D59C40 #40D552 #4079D5
split-complementary
#D540C3 #79D540 #40D59C
monochromatic
#7F1C73 #B127A0 #D540C3 #E072D3 #EBA4E3

Accessibility & contrast

On white

3.92
#D540C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#D540C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540C3
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540C3#FFFFFF#000000##000000
##D540C31.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B73C7
Deuteranopia (green-blind)
#7188BF
Tritanopia (blue-blind)
#DE4E7D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d540c3;
/* rgb */ color: rgb(213, 64, 195);
/* oklch */ color: oklch(63.2% 0.230 333.3);
Tailwind
colors: {
  custom: {
    50: '#e682d5',
    500: '#d540c3',
    950: '#000000',
  },
}
SCSS
$custom: #d540c3;
$custom-light: #e682d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d540c3",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 307.248,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63177,
    "c": 0.23028,
    "h": 333.3
  },
  "luminance": 0.21753
}

Semantic roles & 50–950 ramp

primary
#D540C3
secondary
#99D8A0
accent
#E75541
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D540C3

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

Preview Lab → · Contrast checker → · Palette generator →

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