#D381EB#D381EB

#D381EB is a light, vivid purple. Relative luminance 0.355; OKLCH L 72.8% C 0.170 H 318.3°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#D381EB
RGBrgb(211, 129, 235)
HSLhsl(286, 73%, 71%)
HSVhsv(286, 45%, 92%)
CMYKcmyk(10.2%, 45.1%, 0%, 7.8%)
CIE-LABlab(66.17, 48.64, -40.89)
CIE-LCHlch(66.17, 63.54, 319.95°)
OKLaboklab(72.84% 0.1267 -0.113)
OKLCHoklch(72.84% 0.17 318.3)
XYZxyz(49.7076, 35.5492, 82.8244)
Luminance0.3555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D381EB #99EB81
analogous
#9E81EB #D381EB #EB81CE
triadic
#D381EB #EBD381 #81EBD3
tetradic
#D381EB #EB9E81 #99EB81 #81CEEB
square
#D381EB #EB9E81 #99EB81 #81CEEB
split-complementary
#D381EB #CEEB81 #81EB9E
monochromatic
#A921D1 #C14CE3 #D381EB #E5B6F3 #F6E5FB

Accessibility & contrast

On white

2.59
#D381EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#D381EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D381EB
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D381EB#FFFFFF#000000##000000
##D381EB1.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9BEF
Deuteranopia (green-blind)
#86A4E8
Tritanopia (blue-blind)
#D38FAB
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d381eb;
/* rgb */ color: rgb(211, 129, 235);
/* oklch */ color: oklch(72.8% 0.170 318.3);
Tailwind
colors: {
  custom: {
    50: '#e2a8f2',
    500: '#d381eb',
    950: '#000000',
  },
}
SCSS
$custom: #d381eb;
$custom-light: #e2a8f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d381eb",
  "rgb": {
    "r": 211,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 286.415,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.72837,
    "c": 0.16981,
    "h": 318.3
  },
  "luminance": 0.35548
}

Semantic roles & 50–950 ramp

primary
#D381EB
secondary
#DCF2D6
accent
#D5113D
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D381EB

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

Preview Lab → · Contrast checker → · Palette generator →

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