#D781DC#D781DC

#D781DC is a light, vivid purple. Relative luminance 0.353; OKLCH L 72.6% C 0.157 H 325.1°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#D781DC
RGBrgb(215, 129, 220)
HSLhsl(297, 57%, 68%)
HSVhsv(297, 41%, 86%)
CMYKcmyk(2.3%, 41.4%, 0%, 13.7%)
CIE-LABlab(65.99, 46.92, -32.83)
CIE-LCHlch(65.99, 57.27, 325.02°)
OKLaboklab(72.59% 0.1286 -0.0898)
OKLCHoklch(72.59% 0.157 325.1)
XYZxyz(48.7917, 35.3170, 71.9430)
Luminance0.3532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D781DC #86DC81
analogous
#A981DC #D781DC #DC81B3
triadic
#D781DC #DCD781 #81DCD7
tetradic
#D781DC #DCA981 #86DC81 #81B3DC
square
#D781DC #DCA981 #86DC81 #81B3DC
split-complementary
#D781DC #B3DC81 #81DCA9
monochromatic
#AA31B1 #C851CF #D781DC #E6B1E9 #F5E1F7

Accessibility & contrast

On white

2.60
#D781DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#D781DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D781DC
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D781DC#FFFFFF#000000##000000
##D781DC1.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#789ADF
Deuteranopia (green-blind)
#8FA4D9
Tritanopia (blue-blind)
#DB8BA4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d781dc;
/* rgb */ color: rgb(215, 129, 220);
/* oklch */ color: oklch(72.6% 0.157 325.1);
Tailwind
colors: {
  custom: {
    50: '#e5a7e7',
    500: '#d781dc',
    950: '#000000',
  },
}
SCSS
$custom: #d781dc;
$custom-light: #e5a7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#d781dc",
  "rgb": {
    "r": 215,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 296.703,
    "s": 56.522,
    "l": 68.431
  },
  "oklch": {
    "l": 0.72593,
    "c": 0.15687,
    "h": 325.1
  },
  "luminance": 0.35315
}

Semantic roles & 50–950 ramp

primary
#D781DC
secondary
#D0EACF
accent
#C4212A
background
#FEFAFE
surface
#FCF4FC
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D781DC

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

Preview Lab → · Contrast checker → · Palette generator →

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