#D787FB#D787FB

#D787FB is a light, vivid purple. Relative luminance 0.387; OKLCH L 75.0% C 0.179 H 314.6°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#D787FB
RGBrgb(215, 135, 251)
HSLhsl(281, 94%, 76%)
HSVhsv(281, 46%, 98%)
CMYKcmyk(14.3%, 46.2%, 0%, 1.6%)
CIE-LABlab(68.56, 49.87, -45.90)
CIE-LCHlch(68.56, 67.77, 317.37°)
OKLaboklab(74.95% 0.1255 -0.1274)
OKLCHoklch(74.95% 0.179 314.6)
XYZxyz(54.0981, 38.7414, 95.8761)
Luminance0.3874 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787FB #ABFB87
analogous
#9D87FB #D787FB #FB87E5
triadic
#D787FB #FBD787 #87FBD7
tetradic
#D787FB #FB9D87 #ABFB87 #87E5FB
square
#D787FB #FB9D87 #ABFB87 #87E5FB
split-complementary
#D787FB #E5FB87 #87FB9D
monochromatic
#B011F7 #C34CF9 #D787FB #EBC2FD #F5E1FE

Accessibility & contrast

On white

2.40
#D787FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#D787FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787FB
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787FB#FFFFFF#000000##000000
##D787FB1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A3FF
Deuteranopia (green-blind)
#86A9F8
Tritanopia (blue-blind)
#D598B5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d787fb;
/* rgb */ color: rgb(215, 135, 251);
/* oklch */ color: oklch(75.0% 0.179 314.6);
Tailwind
colors: {
  custom: {
    50: '#e5acfd',
    500: '#d787fb',
    950: '#000000',
  },
}
SCSS
$custom: #d787fb;
$custom-light: #e5acfd;
$custom-dark: #000000;
JSON
{
  "hex": "#d787fb",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 281.379,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.74953,
    "c": 0.17886,
    "h": 314.6
  },
  "luminance": 0.3874
}

Semantic roles & 50–950 ramp

primary
#D787FB
secondary
#DFF6D5
accent
#E60047
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D787FB

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

Preview Lab → · Contrast checker → · Palette generator →

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