#D540DF#D540DF

#D540DF is a light, highly saturated purple. Relative luminance 0.231; OKLCH L 64.7% C 0.251 H 325.2°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#D540DF
RGBrgb(213, 64, 223)
HSLhsl(296, 71%, 56%)
HSVhsv(296, 71%, 87%)
CMYKcmyk(4.5%, 71.3%, 0%, 12.5%)
CIE-LABlab(55.22, 75.64, -51.47)
CIE-LCHlch(55.22, 91.49, 325.77°)
OKLaboklab(64.69% 0.2064 -0.1432)
OKLCHoklch(64.69% 0.251 325.2)
XYZxyz(42.5923, 23.1434, 72.0215)
Luminance0.2314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D540DF #4ADF40
analogous
#8640DF #D540DF #DF409A
triadic
#D540DF #DFD540 #40DFD5
tetradic
#D540DF #DF8640 #4ADF40 #409ADF
square
#D540DF #DF8640 #4ADF40 #409ADF
split-complementary
#D540DF #9ADF40 #40DF86
monochromatic
#86188D #B720C1 #D540DF #E174E8 #ECA9F1

Accessibility & contrast

On white

3.73
#D540DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#D540DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D540DF
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D540DF#FFFFFF#000000##000000
##D540DF1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D79E3
Deuteranopia (green-blind)
#618ADB
Tritanopia (blue-blind)
#DA5B8C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d540df;
/* rgb */ color: rgb(213, 64, 223);
/* oklch */ color: oklch(64.7% 0.251 325.2);
Tailwind
colors: {
  custom: {
    50: '#e683e9',
    500: '#d540df',
    950: '#000000',
  },
}
SCSS
$custom: #d540df;
$custom-light: #e683e9;
$custom-dark: #000000;
JSON
{
  "hex": "#d540df",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 296.226,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.64689,
    "c": 0.25117,
    "h": 325.2
  },
  "luminance": 0.23141
}

Semantic roles & 50–950 ramp

primary
#D540DF
secondary
#A1DE9D
accent
#EE3A45
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D540DF

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

Preview Lab → · Contrast checker → · Palette generator →

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