#D787D2#D787D2

#D787D2 is a light, vivid purple. Relative luminance 0.364; OKLCH L 73.1% C 0.137 H 329.1°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#D787D2
RGBrgb(215, 135, 210)
HSLhsl(304, 50%, 69%)
HSVhsv(304, 37%, 84%)
CMYKcmyk(0%, 37.2%, 2.3%, 15.7%)
CIE-LABlab(66.85, 41.96, -25.95)
CIE-LCHlch(66.85, 49.33, 328.27°)
OKLaboklab(73.1% 0.1176 -0.0704)
OKLCHoklch(73.1% 0.137 329.1)
XYZxyz(48.3204, 36.4303, 65.4468)
Luminance0.3643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787D2 #87D78C
analogous
#B487D7 #D787D2 #D787AA
triadic
#D787D2 #D2D787 #87D2D7
tetradic
#D787D2 #D7B487 #87D78C #87AAD7
square
#D787D2 #D7B487 #87D78C #87AAD7
split-complementary
#D787D2 #AAD787 #87D7B4
monochromatic
#AB39A4 #C859C1 #D787D2 #E6B5E3 #F6E3F4

Accessibility & contrast

On white

2.53
#D787D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#D787D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787D2
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787D2#FFFFFF#000000##000000
##D787D21.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#839CD5
Deuteranopia (green-blind)
#97A6CF
Tritanopia (blue-blind)
#DD8DA3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d787d2;
/* rgb */ color: rgb(215, 135, 210);
/* oklch */ color: oklch(73.1% 0.137 329.1);
Tailwind
colors: {
  custom: {
    50: '#e4abe0',
    500: '#d787d2',
    950: '#000000',
  },
}
SCSS
$custom: #d787d2;
$custom-light: #e4abe0;
$custom-dark: #000000;
JSON
{
  "hex": "#d787d2",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 210
  },
  "hsl": {
    "h": 303.75,
    "s": 50,
    "l": 68.627
  },
  "oklch": {
    "l": 0.73104,
    "c": 0.13701,
    "h": 329.1
  },
  "luminance": 0.36428
}

Semantic roles & 50–950 ramp

primary
#D787D2
secondary
#D1E9D2
accent
#BD3128
background
#FEFAFD
surface
#FCF4FB
border
#D5CED4
text
#161015
muted
#847F83

Preview Lab

Preview with #D787D2

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

Preview Lab → · Contrast checker → · Palette generator →

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