#D787FF#D787FF

#D787FF is a light, vivid purple. Relative luminance 0.390; OKLCH L 75.2% C 0.183 H 313.5°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#D787FF
RGBrgb(215, 135, 255)
HSLhsl(280, 100%, 76%)
HSVhsv(280, 47%, 100%)
CMYKcmyk(15.7%, 47.1%, 0%, 0%)
CIE-LABlab(68.75, 50.69, -47.79)
CIE-LCHlch(68.75, 69.67, 316.69°)
OKLaboklab(75.15% 0.1261 -0.1329)
OKLCHoklch(75.15% 0.183 313.5)
XYZxyz(54.7353, 38.9963, 99.2320)
Luminance0.3900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787FF #AFFF87
analogous
#9B87FF #D787FF #FF87EB
triadic
#D787FF #FFD787 #87FFD7
tetradic
#D787FF #FF9B87 #AFFF87 #87EBFF
square
#D787FF #FF9B87 #AFFF87 #87EBFF
split-complementary
#D787FF #EBFF87 #87FF9B
monochromatic
#AE0DFF #C34AFF #D787FF #EBC4FF #F5E0FF

Accessibility & contrast

On white

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

On black

8.80
#D787FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787FF
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787FF#FFFFFF#000000##000000
##D787FF1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA3FF
Deuteranopia (green-blind)
#84AAFC
Tritanopia (blue-blind)
#D499B7
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d787ff;
/* rgb */ color: rgb(215, 135, 255);
/* oklch */ color: oklch(75.2% 0.183 313.5);
Tailwind
colors: {
  custom: {
    50: '#e5acff',
    500: '#d787ff',
    950: '#000000',
  },
}
SCSS
$custom: #d787ff;
$custom-light: #e5acff;
$custom-dark: #000000;
JSON
{
  "hex": "#d787ff",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 280,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75151,
    "c": 0.18317,
    "h": 313.5
  },
  "luminance": 0.38995
}

Semantic roles & 50–950 ramp

primary
#D787FF
secondary
#E0F7D4
accent
#E6004C
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D787FF

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

Preview Lab → · Contrast checker → · Palette generator →

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