#D787FE#D787FE

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

Color values

HEX#D787FE
RGBrgb(215, 135, 254)
HSLhsl(280, 98%, 76%)
HSVhsv(280, 47%, 100%)
CMYKcmyk(15.4%, 46.9%, 0%, 0.4%)
CIE-LABlab(68.70, 50.48, -47.32)
CIE-LCHlch(68.70, 69.19, 316.86°)
OKLaboklab(75.1% 0.1259 -0.1315)
OKLCHoklch(75.1% 0.182 313.7)
XYZxyz(54.5748, 38.9321, 98.3865)
Luminance0.3893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787FE #AEFE87
analogous
#9C87FE #D787FE #FE87EA
triadic
#D787FE #FED787 #87FED7
tetradic
#D787FE #FE9C87 #AEFE87 #87EAFE
square
#D787FE #FE9C87 #AEFE87 #87EAFE
split-complementary
#D787FE #EAFE87 #87FE9C
monochromatic
#AF0EFD #C34AFD #D787FE #EBC4FF #F5E1FF

Accessibility & contrast

On white

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

On black

8.79
#D787FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787FE
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787FE#FFFFFF#000000##000000
##D787FE1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d787fe;
/* rgb */ color: rgb(215, 135, 254);
/* oklch */ color: oklch(75.1% 0.182 313.7);
Tailwind
colors: {
  custom: {
    50: '#e5acff',
    500: '#d787fe',
    950: '#000000',
  },
}
SCSS
$custom: #d787fe;
$custom-light: #e5acff;
$custom-dark: #000000;
JSON
{
  "hex": "#d787fe",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 280.336,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75101,
    "c": 0.1821,
    "h": 313.7
  },
  "luminance": 0.38931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D787FE

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

Preview Lab → · Contrast checker → · Palette generator →

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