#D787F2#D787F2

#D787F2 is a light, vivid purple. Relative luminance 0.382; OKLCH L 74.5% C 0.169 H 317.2°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#D787F2
RGBrgb(215, 135, 242)
HSLhsl(285, 80%, 74%)
HSVhsv(285, 44%, 95%)
CMYKcmyk(11.2%, 44.2%, 0%, 5.1%)
CIE-LABlab(68.16, 48.05, -41.60)
CIE-LCHlch(68.16, 63.56, 319.11°)
OKLaboklab(74.52% 0.1241 -0.115)
OKLCHoklch(74.52% 0.169 317.2)
XYZxyz(52.7130, 38.1874, 88.5813)
Luminance0.3819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787F2 #A2F287
analogous
#A287F2 #D787F2 #F287D8
triadic
#D787F2 #F2D787 #87F2D7
tetradic
#D787F2 #F2A287 #A2F287 #87D8F2
square
#D787F2 #F2A287 #A2F287 #87D8F2
split-complementary
#D787F2 #D8F287 #87F2A2
monochromatic
#B219E6 #C550EC #D787F2 #E9BEF8 #F6E3FC

Accessibility & contrast

On white

2.43
#D787F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#D787F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787F2
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787F2#FFFFFF#000000##000000
##D787F21.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A1F6
Deuteranopia (green-blind)
#8AA9EF
Tritanopia (blue-blind)
#D696B1
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d787f2;
/* rgb */ color: rgb(215, 135, 242);
/* oklch */ color: oklch(74.5% 0.169 317.2);
Tailwind
colors: {
  custom: {
    50: '#e5acf6',
    500: '#d787f2',
    950: '#000000',
  },
}
SCSS
$custom: #d787f2;
$custom-light: #e5acf6;
$custom-dark: #000000;
JSON
{
  "hex": "#d787f2",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 284.86,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.74518,
    "c": 0.16925,
    "h": 317.2
  },
  "luminance": 0.38186
}

Semantic roles & 50–950 ramp

primary
#D787F2
secondary
#DEF4D7
accent
#DD093E
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D787F2

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

Preview Lab → · Contrast checker → · Palette generator →

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