#D381EF#D381EF

#D381EF is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.0% C 0.174 H 317.0°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#D381EF
RGBrgb(211, 129, 239)
HSLhsl(285, 77%, 72%)
HSVhsv(285, 46%, 94%)
CMYKcmyk(11.7%, 46%, 0%, 6.3%)
CIE-LABlab(66.35, 49.44, -42.81)
CIE-LCHlch(66.35, 65.40, 319.11°)
OKLaboklab(73.03% 0.1273 -0.1186)
OKLCHoklch(73.03% 0.174 317)
XYZxyz(50.2920, 35.7829, 85.9022)
Luminance0.3578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D381EF #9DEF81
analogous
#9C81EF #D381EF #EF81D4
triadic
#D381EF #EFD381 #81EFD3
tetradic
#D381EF #EF9C81 #9DEF81 #81D4EF
square
#D381EF #EF9C81 #9DEF81 #81D4EF
split-complementary
#D381EF #D4EF81 #81EF9C
monochromatic
#A91CDA #C04BE8 #D381EF #E6B7F6 #F6E4FC

Accessibility & contrast

On white

2.57
#D381EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#D381EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D381EF
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D381EF#FFFFFF#000000##000000
##D381EF1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9CF3
Deuteranopia (green-blind)
#84A4EC
Tritanopia (blue-blind)
#D290AD
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d381ef;
/* rgb */ color: rgb(211, 129, 239);
/* oklch */ color: oklch(73.0% 0.174 317.0);
Tailwind
colors: {
  custom: {
    50: '#e2a8f4',
    500: '#d381ef',
    950: '#000000',
  },
}
SCSS
$custom: #d381ef;
$custom-light: #e2a8f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d381ef",
  "rgb": {
    "r": 211,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 284.727,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73029,
    "c": 0.174,
    "h": 317
  },
  "luminance": 0.35781
}

Semantic roles & 50–950 ramp

primary
#D381EF
secondary
#DFF3D8
accent
#DA0C40
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D381EF

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

Preview Lab → · Contrast checker → · Palette generator →

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