#D781EF#D781EF

#D781EF is a light, vivid purple. Relative luminance 0.364; OKLCH L 73.5% C 0.176 H 318.6°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#D781EF
RGBrgb(215, 129, 239)
HSLhsl(287, 77%, 72%)
HSVhsv(287, 46%, 94%)
CMYKcmyk(10%, 46%, 0%, 6.3%)
CIE-LABlab(66.81, 50.56, -42.07)
CIE-LCHlch(66.81, 65.77, 320.24°)
OKLaboklab(73.47% 0.132 -0.1163)
OKLCHoklch(73.47% 0.176 318.6)
XYZxyz(51.4525, 36.3813, 85.9566)
Luminance0.3638 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D781EF #99EF81
analogous
#A081EF #D781EF #EF81D0
triadic
#D781EF #EFD781 #81EFD7
tetradic
#D781EF #EFA081 #99EF81 #81D0EF
square
#D781EF #EFA081 #99EF81 #81D0EF
split-complementary
#D781EF #D0EF81 #81EFA0
monochromatic
#B01CDA #C64BE8 #D781EF #E8B7F6 #F6E4FC

Accessibility & contrast

On white

2.54
#D781EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#D781EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D781EF
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D781EF#FFFFFF#000000##000000
##D781EF1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9DF3
Deuteranopia (green-blind)
#87A6EC
Tritanopia (blue-blind)
#D790AD
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d781ef;
/* rgb */ color: rgb(215, 129, 239);
/* oklch */ color: oklch(73.5% 0.176 318.6);
Tailwind
colors: {
  custom: {
    50: '#e5a8f4',
    500: '#d781ef',
    950: '#000000',
  },
}
SCSS
$custom: #d781ef;
$custom-light: #e5a8f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d781ef",
  "rgb": {
    "r": 215,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 286.909,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73469,
    "c": 0.17593,
    "h": 318.6
  },
  "luminance": 0.3638
}

Semantic roles & 50–950 ramp

primary
#D781EF
secondary
#DEF3D8
accent
#DA0C39
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D781EF

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

Preview Lab → · Contrast checker → · Palette generator →

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