#D371EF#D371EF

#D371EF is a light, vivid purple. Relative luminance 0.319; OKLCH L 70.7% C 0.199 H 318.3°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#D371EF
RGBrgb(211, 113, 239)
HSLhsl(287, 80%, 69%)
HSVhsv(287, 53%, 94%)
CMYKcmyk(11.7%, 52.7%, 0%, 6.3%)
CIE-LABlab(63.25, 57.52, -47.69)
CIE-LCHlch(63.25, 74.72, 320.33°)
OKLaboklab(70.73% 0.1489 -0.1326)
OKLCHoklch(70.73% 0.199 318.3)
XYZxyz(48.3470, 31.8929, 85.2538)
Luminance0.3189 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D371EF #8DEF71
analogous
#9471EF #D371EF #EF71CC
triadic
#D371EF #EFD371 #71EFD3
tetradic
#D371EF #EF9471 #8DEF71 #71CCEF
square
#D371EF #EF9471 #8DEF71 #71CCEF
split-complementary
#D371EF #CCEF71 #71EF94
monochromatic
#A617CE #C23AE9 #D371EF #E4A8F5 #F5DFFB

Accessibility & contrast

On white

2.85
#D371EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#D371EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D371EF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D371EF#FFFFFF#000000##000000
##D371EF1.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5793F3
Deuteranopia (green-blind)
#779CEC
Tritanopia (blue-blind)
#D384A6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d371ef;
/* rgb */ color: rgb(211, 113, 239);
/* oklch */ color: oklch(70.7% 0.199 318.3);
Tailwind
colors: {
  custom: {
    50: '#e39df5',
    500: '#d371ef',
    950: '#000000',
  },
}
SCSS
$custom: #d371ef;
$custom-light: #e39df5;
$custom-dark: #000000;
JSON
{
  "hex": "#d371ef",
  "rgb": {
    "r": 211,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 286.667,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70734,
    "c": 0.19934,
    "h": 318.3
  },
  "luminance": 0.31891
}

Semantic roles & 50–950 ramp

primary
#D371EF
secondary
#D4F0CB
accent
#DC0938
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D371EF

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

Preview Lab → · Contrast checker → · Palette generator →

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