#D387EC#D387EC

#D387EC is a light, vivid purple. Relative luminance 0.372; OKLCH L 73.8% C 0.161 H 317.4°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#D387EC
RGBrgb(211, 135, 236)
HSLhsl(285, 73%, 73%)
HSVhsv(285, 43%, 93%)
CMYKcmyk(10.6%, 42.8%, 0%, 7.5%)
CIE-LABlab(67.45, 45.70, -39.44)
CIE-LCHlch(67.45, 60.37, 319.20°)
OKLaboklab(73.81% 0.1185 -0.1089)
OKLCHoklch(73.81% 0.161 317.4)
XYZxyz(50.6661, 37.2345, 83.8586)
Luminance0.3723 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D387EC #A0EC87
analogous
#A187EC #D387EC #EC87D2
triadic
#D387EC #ECD387 #87ECD3
tetradic
#D387EC #ECA187 #A0EC87 #87D2EC
square
#D387EC #ECA187 #A0EC87 #87D2EC
split-complementary
#D387EC #D2EC87 #87ECA1
monochromatic
#AA22D7 #C052E4 #D387EC #E6BCF4 #F5E5FB

Accessibility & contrast

On white

2.49
#D387EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#D387EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D387EC
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D387EC#FFFFFF#000000##000000
##D387EC1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#769FF0
Deuteranopia (green-blind)
#8BA7E9
Tritanopia (blue-blind)
#D394AE
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d387ec;
/* rgb */ color: rgb(211, 135, 236);
/* oklch */ color: oklch(73.8% 0.161 317.4);
Tailwind
colors: {
  custom: {
    50: '#e2abf2',
    500: '#d387ec',
    950: '#000000',
  },
}
SCSS
$custom: #d387ec;
$custom-light: #e2abf2;
$custom-dark: #000000;
JSON
{
  "hex": "#d387ec",
  "rgb": {
    "r": 211,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 285.149,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73806,
    "c": 0.16093,
    "h": 317.4
  },
  "luminance": 0.37233
}

Semantic roles & 50–950 ramp

primary
#D387EC
secondary
#DFF2D9
accent
#D51141
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D387EC

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

Preview Lab → · Contrast checker → · Palette generator →

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