#D540CF#D540CF

#D540CF is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.8% C 0.239 H 329.7°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#D540CF
RGBrgb(213, 64, 207)
HSLhsl(302, 64%, 54%)
HSVhsv(302, 70%, 84%)
CMYKcmyk(0%, 70%, 2.8%, 16.5%)
CIE-LABlab(54.37, 73.06, -43.73)
CIE-LCHlch(54.37, 85.15, 329.10°)
OKLaboklab(63.8% 0.2063 -0.1207)
OKLCHoklch(63.8% 0.239 329.7)
XYZxyz(40.5362, 22.3210, 61.1928)
Luminance0.2232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540CF #40D546
analogous
#9140D5 #D540CF #D54085
triadic
#D540CF #CFD540 #40CFD5
tetradic
#D540CF #D59140 #40D546 #4085D5
square
#D540CF #D59140 #40D546 #4085D5
split-complementary
#D540CF #85D540 #40D591
monochromatic
#7F1C7B #B127AB #D540CF #E072DC #EBA4E8

Accessibility & contrast

On white

3.84
#D540CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#D540CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540CF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540CF#FFFFFF#000000##000000
##D540CF1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E75D3
Deuteranopia (green-blind)
#6B89CB
Tritanopia (blue-blind)
#DD5483
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d540cf;
/* rgb */ color: rgb(213, 64, 207);
/* oklch */ color: oklch(63.8% 0.239 329.7);
Tailwind
colors: {
  custom: {
    50: '#e682de',
    500: '#d540cf',
    950: '#000000',
  },
}
SCSS
$custom: #d540cf;
$custom-light: #e682de;
$custom-dark: #000000;
JSON
{
  "hex": "#d540cf",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 302.416,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63802,
    "c": 0.23903,
    "h": 329.7
  },
  "luminance": 0.22318
}

Semantic roles & 50–950 ramp

primary
#D540CF
secondary
#99D89B
accent
#E74841
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D540CF

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

Preview Lab → · Contrast checker → · Palette generator →

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