#D371EB#D371EB

#D371EB is a light, vivid purple. Relative luminance 0.317; OKLCH L 70.5% C 0.195 H 319.4°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#D371EB
RGBrgb(211, 113, 235)
HSLhsl(288, 75%, 68%)
HSVhsv(288, 52%, 92%)
CMYKcmyk(10.2%, 51.9%, 0%, 7.8%)
CIE-LABlab(63.06, 56.74, -45.78)
CIE-LCHlch(63.06, 72.91, 321.10°)
OKLaboklab(70.53% 0.1485 -0.127)
OKLCHoklch(70.53% 0.195 319.4)
XYZxyz(47.7626, 31.6592, 82.1761)
Luminance0.3166 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D371EB #89EB71
analogous
#9671EB #D371EB #EB71C6
triadic
#D371EB #EBD371 #71EBD3
tetradic
#D371EB #EB9671 #89EB71 #71C6EB
square
#D371EB #EB9671 #89EB71 #71C6EB
split-complementary
#D371EB #C6EB71 #71EB96
monochromatic
#A41CC6 #C23BE3 #D371EB #E4A7F3 #F4DCFA

Accessibility & contrast

On white

2.86
#D371EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#D371EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D371EB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D371EB#FFFFFF#000000##000000
##D371EB1.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A92EF
Deuteranopia (green-blind)
#799CE8
Tritanopia (blue-blind)
#D483A4
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d371eb;
/* rgb */ color: rgb(211, 113, 235);
/* oklch */ color: oklch(70.5% 0.195 319.4);
Tailwind
colors: {
  custom: {
    50: '#e39df2',
    500: '#d371eb',
    950: '#000000',
  },
}
SCSS
$custom: #d371eb;
$custom-light: #e39df2;
$custom-dark: #000000;
JSON
{
  "hex": "#d371eb",
  "rgb": {
    "r": 211,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 288.197,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.70528,
    "c": 0.1954,
    "h": 319.4
  },
  "luminance": 0.31657
}

Semantic roles & 50–950 ramp

primary
#D371EB
secondary
#D1EEC9
accent
#D70E36
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D371EB

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

Preview Lab → · Contrast checker → · Palette generator →

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