#D786F9#D786F9

#D786F9 is a light, vivid purple. Relative luminance 0.383; OKLCH L 74.7% C 0.178 H 315.2°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#D786F9
RGBrgb(215, 134, 249)
HSLhsl(282, 91%, 75%)
HSVhsv(282, 46%, 98%)
CMYKcmyk(13.7%, 46.2%, 0%, 2.4%)
CIE-LABlab(68.27, 49.98, -45.27)
CIE-LCHlch(68.27, 67.43, 317.83°)
OKLaboklab(74.7% 0.1266 -0.1256)
OKLCHoklch(74.7% 0.178 315.2)
XYZxyz(53.6457, 38.3383, 94.1783)
Luminance0.3834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786F9 #A8F986
analogous
#9E86F9 #D786F9 #F986E1
triadic
#D786F9 #F9D786 #86F9D7
tetradic
#D786F9 #F99E86 #A8F986 #86E1F9
square
#D786F9 #F99E86 #A8F986 #86E1F9
split-complementary
#D786F9 #E1F986 #86F99E
monochromatic
#B011F3 #C44CF6 #D786F9 #EAC0FC #F5E2FE

Accessibility & contrast

On white

2.42
#D786F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#D786F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786F9
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786F9#FFFFFF#000000##000000
##D786F91.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA2FD
Deuteranopia (green-blind)
#86A9F6
Tritanopia (blue-blind)
#D597B4
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d786f9;
/* rgb */ color: rgb(215, 134, 249);
/* oklch */ color: oklch(74.7% 0.178 315.2);
Tailwind
colors: {
  custom: {
    50: '#e5abfb',
    500: '#d786f9',
    950: '#000000',
  },
}
SCSS
$custom: #d786f9;
$custom-light: #e5abfb;
$custom-dark: #000000;
JSON
{
  "hex": "#d786f9",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 249
  },
  "hsl": {
    "h": 282.261,
    "s": 90.551,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74704,
    "c": 0.17833,
    "h": 315.2
  },
  "luminance": 0.38337
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D786F9

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

Preview Lab → · Contrast checker → · Palette generator →

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