#D787FC#D787FC

#D787FC is a light, vivid purple. Relative luminance 0.388; OKLCH L 75.0% C 0.180 H 314.3°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#D787FC
RGBrgb(215, 135, 252)
HSLhsl(281, 95%, 76%)
HSVhsv(281, 46%, 99%)
CMYKcmyk(14.7%, 46.4%, 0%, 1.2%)
CIE-LABlab(68.61, 50.07, -46.37)
CIE-LCHlch(68.61, 68.25, 317.20°)
OKLaboklab(75% 0.1257 -0.1288)
OKLCHoklch(75% 0.18 314.3)
XYZxyz(54.2562, 38.8047, 96.7085)
Luminance0.3880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787FC #ACFC87
analogous
#9C87FC #D787FC #FC87E6
triadic
#D787FC #FCD787 #87FCD7
tetradic
#D787FC #FC9C87 #ACFC87 #87E6FC
square
#D787FC #FC9C87 #ACFC87 #87E6FC
split-complementary
#D787FC #E6FC87 #87FC9C
monochromatic
#AF10F9 #C34BFB #D787FC #EBC3FD #F5E1FE

Accessibility & contrast

On white

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

On black

8.76
#D787FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787FC
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787FC#FFFFFF#000000##000000
##D787FC1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA3FF
Deuteranopia (green-blind)
#85AAF9
Tritanopia (blue-blind)
#D498B6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d787fc;
/* rgb */ color: rgb(215, 135, 252);
/* oklch */ color: oklch(75.0% 0.180 314.3);
Tailwind
colors: {
  custom: {
    50: '#e5acfe',
    500: '#d787fc',
    950: '#000000',
  },
}
SCSS
$custom: #d787fc;
$custom-light: #e5acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d787fc",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 281.026,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75002,
    "c": 0.17994,
    "h": 314.3
  },
  "luminance": 0.38803
}

Semantic roles & 50–950 ramp

primary
#D787FC
secondary
#DFF6D5
accent
#E60049
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D787FC

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

Preview Lab → · Contrast checker → · Palette generator →

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