#D786F7#D786F7

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

Color values

HEX#D786F7
RGBrgb(215, 134, 247)
HSLhsl(283, 88%, 75%)
HSVhsv(283, 46%, 97%)
CMYKcmyk(13%, 45.7%, 0%, 3.1%)
CIE-LABlab(68.18, 49.57, -44.31)
CIE-LCHlch(68.18, 66.49, 318.21°)
OKLaboklab(74.61% 0.1263 -0.1228)
OKLCHoklch(74.61% 0.176 315.8)
XYZxyz(53.3354, 38.2142, 92.5441)
Luminance0.3821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786F7 #A6F786
analogous
#9F86F7 #D786F7 #F786DE
triadic
#D786F7 #F7D786 #86F7D7
tetradic
#D786F7 #F79F86 #A6F786 #86DEF7
square
#D786F7 #F79F86 #A6F786 #86DEF7
split-complementary
#D786F7 #DEF786 #86F79F
monochromatic
#B113EF #C44DF3 #D786F7 #EABFFB #F6E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D786F7#FFFFFF#000000##000000
##D786F71.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)
#71A1FB
Deuteranopia (green-blind)
#87A9F4
Tritanopia (blue-blind)
#D596B3
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d786f7;
/* rgb */ color: rgb(215, 134, 247);
/* oklch */ color: oklch(74.6% 0.176 315.8);
Tailwind
colors: {
  custom: {
    50: '#e5abfa',
    500: '#d786f7',
    950: '#000000',
  },
}
SCSS
$custom: #d786f7;
$custom-light: #e5abfa;
$custom-dark: #000000;
JSON
{
  "hex": "#d786f7",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 247
  },
  "hsl": {
    "h": 283.009,
    "s": 87.597,
    "l": 74.706
  },
  "oklch": {
    "l": 0.74606,
    "c": 0.17619,
    "h": 315.8
  },
  "luminance": 0.38213
}

Semantic roles & 50–950 ramp

primary
#D786F7
secondary
#DFF5D6
accent
#E40142
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D786F7

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

Preview Lab → · Contrast checker → · Palette generator →

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