#D786F8#D786F8

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

Color values

HEX#D786F8
RGBrgb(215, 134, 248)
HSLhsl(283, 89%, 75%)
HSVhsv(283, 46%, 97%)
CMYKcmyk(13.3%, 46%, 0%, 2.7%)
CIE-LABlab(68.22, 49.78, -44.79)
CIE-LCHlch(68.22, 66.96, 318.02°)
OKLaboklab(74.66% 0.1264 -0.1242)
OKLCHoklch(74.66% 0.177 315.5)
XYZxyz(53.4901, 38.2760, 93.3590)
Luminance0.3827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786F8 #A7F886
analogous
#9E86F8 #D786F8 #F886E0
triadic
#D786F8 #F8D786 #86F8D7
tetradic
#D786F8 #F89E86 #A7F886 #86E0F8
square
#D786F8 #F89E86 #A7F886 #86E0F8
split-complementary
#D786F8 #E0F886 #86F89E
monochromatic
#B112F1 #C44CF5 #D786F8 #EAC0FB #F5E2FD

Accessibility & contrast

On white

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

On black

8.65
#D786F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786F8
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786F8#FFFFFF#000000##000000
##D786F81.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A1FC
Deuteranopia (green-blind)
#87A9F5
Tritanopia (blue-blind)
#D596B3
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d786f8;
/* rgb */ color: rgb(215, 134, 248);
/* oklch */ color: oklch(74.7% 0.177 315.5);
Tailwind
colors: {
  custom: {
    50: '#e5abfb',
    500: '#d786f8',
    950: '#000000',
  },
}
SCSS
$custom: #d786f8;
$custom-light: #e5abfb;
$custom-dark: #000000;
JSON
{
  "hex": "#d786f8",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 248
  },
  "hsl": {
    "h": 282.632,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74655,
    "c": 0.17725,
    "h": 315.5
  },
  "luminance": 0.38275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D786F8

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

Preview Lab → · Contrast checker → · Palette generator →

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