#D786FC#D786FC

#D786FC is a light, vivid purple. Relative luminance 0.385; OKLCH L 74.9% C 0.182 H 314.4°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#D786FC
RGBrgb(215, 134, 252)
HSLhsl(281, 95%, 76%)
HSVhsv(281, 47%, 99%)
CMYKcmyk(14.7%, 46.8%, 0%, 1.2%)
CIE-LABlab(68.41, 50.59, -46.69)
CIE-LCHlch(68.41, 68.84, 317.30°)
OKLaboklab(74.85% 0.127 -0.1297)
OKLCHoklch(74.85% 0.182 314.4)
XYZxyz(54.1173, 38.5269, 96.6622)
Luminance0.3853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786FC #ABFC86
analogous
#9C86FC #D786FC #FC86E6
triadic
#D786FC #FCD786 #86FCD7
tetradic
#D786FC #FC9C86 #ABFC86 #86E6FC
square
#D786FC #FC9C86 #ABFC86 #86E6FC
split-complementary
#D786FC #E6FC86 #86FC9C
monochromatic
#B00FF9 #C34AFB #D786FC #EBC2FD #F5E1FE

Accessibility & contrast

On white

2.41
#D786FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#D786FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786FC
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786FC#FFFFFF#000000##000000
##D786FC1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA2FF
Deuteranopia (green-blind)
#85A9F9
Tritanopia (blue-blind)
#D498B5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d786fc;
/* rgb */ color: rgb(215, 134, 252);
/* oklch */ color: oklch(74.9% 0.182 314.4);
Tailwind
colors: {
  custom: {
    50: '#e5abfe',
    500: '#d786fc',
    950: '#000000',
  },
}
SCSS
$custom: #d786fc;
$custom-light: #e5abfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d786fc",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 252
  },
  "hsl": {
    "h": 281.186,
    "s": 95.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.74851,
    "c": 0.18154,
    "h": 314.4
  },
  "luminance": 0.38526
}

Semantic roles & 50–950 ramp

primary
#D786FC
secondary
#DFF6D5
accent
#E60048
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D786FC

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

Preview Lab → · Contrast checker → · Palette generator →

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