#D840D3#D840D3

#D840D3 is a light, highly saturated purple. Relative luminance 0.230; OKLCH L 64.4% C 0.243 H 329.4°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#D840D3
RGBrgb(216, 64, 211)
HSLhsl(302, 66%, 55%)
HSVhsv(302, 70%, 85%)
CMYKcmyk(0%, 70.4%, 2.3%, 15.3%)
CIE-LABlab(55.04, 74.34, -44.91)
CIE-LCHlch(55.04, 86.85, 328.87°)
OKLaboklab(64.45% 0.2095 -0.124)
OKLCHoklch(64.45% 0.243 329.4)
XYZxyz(41.9098, 22.9720, 63.8421)
Luminance0.2297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840D3 #40D845
analogous
#9140D8 #D840D3 #D84087
triadic
#D840D3 #D3D840 #40D3D8
tetradic
#D840D3 #D89140 #40D845 #4087D8
square
#D840D3 #D89140 #40D845 #4087D8
split-complementary
#D840D3 #87D840 #40D891
monochromatic
#831B7F #B625B1 #D840D3 #E273DF #EDA6EA

Accessibility & contrast

On white

3.75
#D840D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#D840D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840D3
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840D3#FFFFFF#000000##000000
##D840D31.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C77D7
Deuteranopia (green-blind)
#6B8BCF
Tritanopia (blue-blind)
#E05586
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d840d3;
/* rgb */ color: rgb(216, 64, 211);
/* oklch */ color: oklch(64.4% 0.243 329.4);
Tailwind
colors: {
  custom: {
    50: '#e883e1',
    500: '#d840d3',
    950: '#000000',
  },
}
SCSS
$custom: #d840d3;
$custom-light: #e883e1;
$custom-dark: #000000;
JSON
{
  "hex": "#d840d3",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 301.974,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.64447,
    "c": 0.24348,
    "h": 329.4
  },
  "luminance": 0.22969
}

Semantic roles & 50–950 ramp

primary
#D840D3
secondary
#9ADA9C
accent
#E9443F
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D840D3

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

Preview Lab → · Contrast checker → · Palette generator →

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