#D786F2#D786F2

#D786F2 is a light, vivid purple. Relative luminance 0.379; OKLCH L 74.4% C 0.171 H 317.3°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#D786F2
RGBrgb(215, 134, 242)
HSLhsl(285, 81%, 74%)
HSVhsv(285, 45%, 95%)
CMYKcmyk(11.2%, 44.6%, 0%, 5.1%)
CIE-LABlab(67.95, 48.57, -41.92)
CIE-LCHlch(67.95, 64.16, 319.20°)
OKLaboklab(74.37% 0.1255 -0.1159)
OKLCHoklch(74.37% 0.171 317.3)
XYZxyz(52.5742, 37.9097, 88.5350)
Luminance0.3791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786F2 #A1F286
analogous
#A186F2 #D786F2 #F286D7
triadic
#D786F2 #F2D786 #86F2D7
tetradic
#D786F2 #F2A186 #A1F286 #86D7F2
square
#D786F2 #F2A186 #A1F286 #86D7F2
split-complementary
#D786F2 #D7F286 #86F2A1
monochromatic
#B219E5 #C54FEC #D786F2 #E9BDF8 #F6E3FC

Accessibility & contrast

On white

2.45
#D786F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#D786F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786F2
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786F2#FFFFFF#000000##000000
##D786F21.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A0F6
Deuteranopia (green-blind)
#8AA8EF
Tritanopia (blue-blind)
#D795B1
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d786f2;
/* rgb */ color: rgb(215, 134, 242);
/* oklch */ color: oklch(74.4% 0.171 317.3);
Tailwind
colors: {
  custom: {
    50: '#e5abf6',
    500: '#d786f2',
    950: '#000000',
  },
}
SCSS
$custom: #d786f2;
$custom-light: #e5abf6;
$custom-dark: #000000;
JSON
{
  "hex": "#d786f2",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 242
  },
  "hsl": {
    "h": 285,
    "s": 80.597,
    "l": 73.725
  },
  "oklch": {
    "l": 0.74366,
    "c": 0.17089,
    "h": 317.3
  },
  "luminance": 0.37908
}

Semantic roles & 50–950 ramp

primary
#D786F2
secondary
#DEF4D7
accent
#DD093E
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D786F2

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

Preview Lab → · Contrast checker → · Palette generator →

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