#D787FD#D787FD

#D787FD is a light, vivid purple. Relative luminance 0.389; OKLCH L 75.1% C 0.181 H 314.0°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#D787FD
RGBrgb(215, 135, 253)
HSLhsl(281, 97%, 76%)
HSVhsv(281, 47%, 99%)
CMYKcmyk(15%, 46.6%, 0%, 0.8%)
CIE-LABlab(68.66, 50.28, -46.84)
CIE-LCHlch(68.66, 68.72, 317.03°)
OKLaboklab(75.05% 0.1258 -0.1302)
OKLCHoklch(75.05% 0.181 314)
XYZxyz(54.4150, 38.8682, 97.5453)
Luminance0.3887 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787FD #ADFD87
analogous
#9C87FD #D787FD #FD87E8
triadic
#D787FD #FDD787 #87FDD7
tetradic
#D787FD #FD9C87 #ADFD87 #87E8FD
square
#D787FD #FD9C87 #ADFD87 #87E8FD
split-complementary
#D787FD #E8FD87 #87FD9C
monochromatic
#AF0FFB #C34BFC #D787FD #EBC3FE #F5E1FE

Accessibility & contrast

On white

2.39
#D787FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#D787FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787FD
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787FD#FFFFFF#000000##000000
##D787FD1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA3FF
Deuteranopia (green-blind)
#85AAFA
Tritanopia (blue-blind)
#D499B6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d787fd;
/* rgb */ color: rgb(215, 135, 253);
/* oklch */ color: oklch(75.1% 0.181 314.0);
Tailwind
colors: {
  custom: {
    50: '#e5acfe',
    500: '#d787fd',
    950: '#000000',
  },
}
SCSS
$custom: #d787fd;
$custom-light: #e5acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d787fd",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 280.678,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75052,
    "c": 0.18102,
    "h": 314
  },
  "luminance": 0.38867
}

Semantic roles & 50–950 ramp

primary
#D787FD
secondary
#DFF7D4
accent
#E6004A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D787FD

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

Preview Lab → · Contrast checker → · Palette generator →

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