#D786F3#D786F3

#D786F3 is a light, vivid purple. Relative luminance 0.380; OKLCH L 74.4% C 0.172 H 317.0°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#D786F3
RGBrgb(215, 134, 243)
HSLhsl(285, 82%, 74%)
HSVhsv(285, 45%, 95%)
CMYKcmyk(11.5%, 44.9%, 0%, 4.7%)
CIE-LABlab(68.00, 48.77, -42.40)
CIE-LCHlch(68.00, 64.63, 318.99°)
OKLaboklab(74.41% 0.1257 -0.1173)
OKLCHoklch(74.41% 0.172 317)
XYZxyz(52.7248, 37.9699, 89.3282)
Luminance0.3797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786F3 #A2F386
analogous
#A186F3 #D786F3 #F386D9
triadic
#D786F3 #F3D786 #86F3D7
tetradic
#D786F3 #F3A186 #A2F386 #86D9F3
square
#D786F3 #F3A186 #A2F386 #86D9F3
split-complementary
#D786F3 #D9F386 #86F3A1
monochromatic
#B217E8 #C54EED #D786F3 #E9BEF9 #F6E3FC

Accessibility & contrast

On white

2.44
#D786F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#D786F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786F3
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786F3#FFFFFF#000000##000000
##D786F31.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A1F7
Deuteranopia (green-blind)
#89A8F0
Tritanopia (blue-blind)
#D695B1
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d786f3;
/* rgb */ color: rgb(215, 134, 243);
/* oklch */ color: oklch(74.4% 0.172 317.0);
Tailwind
colors: {
  custom: {
    50: '#e5abf7',
    500: '#d786f3',
    950: '#000000',
  },
}
SCSS
$custom: #d786f3;
$custom-light: #e5abf7;
$custom-dark: #000000;
JSON
{
  "hex": "#d786f3",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 243
  },
  "hsl": {
    "h": 284.587,
    "s": 81.955,
    "l": 73.922
  },
  "oklch": {
    "l": 0.74413,
    "c": 0.17195,
    "h": 317
  },
  "luminance": 0.37968
}

Semantic roles & 50–950 ramp

primary
#D786F3
secondary
#DEF4D7
accent
#DE073E
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D786F3

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

Preview Lab → · Contrast checker → · Palette generator →

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