#D787E2#D787E2

#D787E2 is a light, vivid purple. Relative luminance 0.373; OKLCH L 73.8% C 0.153 H 322.6°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#D787E2
RGBrgb(215, 135, 226)
HSLhsl(293, 61%, 71%)
HSVhsv(293, 40%, 89%)
CMYKcmyk(4.9%, 40.3%, 0%, 11.4%)
CIE-LABlab(67.48, 44.92, -33.85)
CIE-LCHlch(67.48, 56.25, 323.00°)
OKLaboklab(73.79% 0.1212 -0.0928)
OKLCHoklch(73.79% 0.153 322.6)
XYZxyz(50.4143, 37.2679, 76.4746)
Luminance0.3727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787E2 #92E287
analogous
#A987E2 #D787E2 #E287BF
triadic
#D787E2 #E2D787 #87E2D7
tetradic
#D787E2 #E2A987 #92E287 #87BFE2
square
#D787E2 #E2A987 #92E287 #87BFE2
split-complementary
#D787E2 #BFE287 #87E2A9
monochromatic
#AF2EC0 #C756D6 #D787E2 #E7B8EE #F7E6F9

Accessibility & contrast

On white

2.48
#D787E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#D787E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787E2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787E2#FFFFFF#000000##000000
##D787E21.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C9EE5
Deuteranopia (green-blind)
#91A8DF
Tritanopia (blue-blind)
#DA91AA
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d787e2;
/* rgb */ color: rgb(215, 135, 226);
/* oklch */ color: oklch(73.8% 0.153 322.6);
Tailwind
colors: {
  custom: {
    50: '#e5aceb',
    500: '#d787e2',
    950: '#000000',
  },
}
SCSS
$custom: #d787e2;
$custom-light: #e5aceb;
$custom-dark: #000000;
JSON
{
  "hex": "#d787e2",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 292.747,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.73785,
    "c": 0.15264,
    "h": 322.6
  },
  "luminance": 0.37266
}

Semantic roles & 50–950 ramp

primary
#D787E2
secondary
#D9EFD6
accent
#C91D32
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D787E2

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

Preview Lab → · Contrast checker → · Palette generator →

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