#D781EB#D781EB

#D781EB is a light, vivid purple. Relative luminance 0.361; OKLCH L 73.3% C 0.172 H 319.9°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#D781EB
RGBrgb(215, 129, 235)
HSLhsl(289, 73%, 71%)
HSVhsv(289, 45%, 92%)
CMYKcmyk(8.5%, 45.1%, 0%, 7.8%)
CIE-LABlab(66.63, 49.78, -40.14)
CIE-LCHlch(66.63, 63.94, 321.12°)
OKLaboklab(73.28% 0.1314 -0.1108)
OKLCHoklch(73.28% 0.172 319.9)
XYZxyz(50.8681, 36.1476, 82.8788)
Luminance0.3615 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D781EB #95EB81
analogous
#A281EB #D781EB #EB81CA
triadic
#D781EB #EBD781 #81EBD7
tetradic
#D781EB #EBA281 #95EB81 #81CAEB
square
#D781EB #EBA281 #95EB81 #81CAEB
split-complementary
#D781EB #CAEB81 #81EBA2
monochromatic
#AF21D1 #C64CE3 #D781EB #E8B6F3 #F7E5FB

Accessibility & contrast

On white

2.55
#D781EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#D781EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D781EB
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D781EB#FFFFFF#000000##000000
##D781EB1.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#719CEF
Deuteranopia (green-blind)
#89A5E8
Tritanopia (blue-blind)
#D88FAB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d781eb;
/* rgb */ color: rgb(215, 129, 235);
/* oklch */ color: oklch(73.3% 0.172 319.9);
Tailwind
colors: {
  custom: {
    50: '#e5a8f2',
    500: '#d781eb',
    950: '#000000',
  },
}
SCSS
$custom: #d781eb;
$custom-light: #e5a8f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d781eb",
  "rgb": {
    "r": 215,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 288.679,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.73279,
    "c": 0.17183,
    "h": 319.9
  },
  "luminance": 0.36146
}

Semantic roles & 50–950 ramp

primary
#D781EB
secondary
#DBF2D6
accent
#D51136
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D781EB

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

Preview Lab → · Contrast checker → · Palette generator →

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