#D840C1#D840C1

#D840C1 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.5% C 0.231 H 334.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#D840C1
RGBrgb(216, 64, 193)
HSLhsl(309, 66%, 55%)
HSVhsv(309, 70%, 85%)
CMYKcmyk(0%, 70.4%, 10.6%, 15.3%)
CIE-LABlab(54.15, 71.62, -35.99)
CIE-LCHlch(54.15, 80.15, 333.32°)
OKLaboklab(63.52% 0.2085 -0.0983)
OKLCHoklch(63.52% 0.231 334.7)
XYZxyz(39.7784, 22.1194, 52.6162)
Luminance0.2212 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840C1 #40D857
analogous
#A340D8 #D840C1 #D84075
triadic
#D840C1 #C1D840 #40C1D8
tetradic
#D840C1 #D8A340 #40D857 #4075D8
square
#D840C1 #D8A340 #40D857 #4075D8
split-complementary
#D840C1 #75D840 #40D8A3
monochromatic
#831B73 #B625A0 #D840C1 #E273D1 #EDA6E2

Accessibility & contrast

On white

3.87
#D840C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#D840C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840C1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840C1#FFFFFF#000000##000000
##D840C11.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F73C5
Deuteranopia (green-blind)
#7489BD
Tritanopia (blue-blind)
#E24C7C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d840c1;
/* rgb */ color: rgb(216, 64, 193);
/* oklch */ color: oklch(63.5% 0.231 334.7);
Tailwind
colors: {
  custom: {
    50: '#e882d4',
    500: '#d840c1',
    950: '#000000',
  },
}
SCSS
$custom: #d840c1;
$custom-light: #e882d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d840c1",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 309.079,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.63517,
    "c": 0.23053,
    "h": 334.7
  },
  "luminance": 0.22116
}

Semantic roles & 50–950 ramp

primary
#D840C1
secondary
#9ADAA4
accent
#E9593F
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D840C1

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

Preview Lab → · Contrast checker → · Palette generator →

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