#D787FA#D787FA

#D787FA is a light, vivid purple. Relative luminance 0.387; OKLCH L 74.9% C 0.178 H 314.8°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#D787FA
RGBrgb(215, 135, 250)
HSLhsl(282, 92%, 75%)
HSVhsv(282, 46%, 98%)
CMYKcmyk(14%, 46%, 0%, 2%)
CIE-LABlab(68.52, 49.66, -45.42)
CIE-LCHlch(68.52, 67.30, 317.55°)
OKLaboklab(74.9% 0.1254 -0.1261)
OKLCHoklch(74.9% 0.178 314.8)
XYZxyz(53.9409, 38.6786, 95.0482)
Luminance0.3868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787FA #AAFA87
analogous
#9D87FA #D787FA #FA87E4
triadic
#D787FA #FAD787 #87FAD7
tetradic
#D787FA #FA9D87 #AAFA87 #87E4FA
square
#D787FA #FA9D87 #AAFA87 #87E4FA
split-complementary
#D787FA #E4FA87 #87FA9D
monochromatic
#B011F5 #C34CF8 #D787FA #EBC2FC #F5E2FE

Accessibility & contrast

On white

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

On black

8.74
#D787FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787FA
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787FA#FFFFFF#000000##000000
##D787FA1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d787fa;
/* rgb */ color: rgb(215, 135, 250);
/* oklch */ color: oklch(74.9% 0.178 314.8);
Tailwind
colors: {
  custom: {
    50: '#e5acfc',
    500: '#d787fa',
    950: '#000000',
  },
}
SCSS
$custom: #d787fa;
$custom-light: #e5acfc;
$custom-dark: #000000;
JSON
{
  "hex": "#d787fa",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 281.739,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74904,
    "c": 0.17779,
    "h": 314.8
  },
  "luminance": 0.38677
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D787FA

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

Preview Lab → · Contrast checker → · Palette generator →

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