#D371EC#D371EC

#D371EC is a light, vivid purple. Relative luminance 0.317; OKLCH L 70.6% C 0.196 H 319.2°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#D371EC
RGBrgb(211, 113, 236)
HSLhsl(288, 76%, 68%)
HSVhsv(288, 52%, 93%)
CMYKcmyk(10.6%, 52.1%, 0%, 7.5%)
CIE-LABlab(63.11, 56.93, -46.26)
CIE-LCHlch(63.11, 73.36, 320.90°)
OKLaboklab(70.58% 0.1486 -0.1284)
OKLCHoklch(70.58% 0.196 319.2)
XYZxyz(47.9075, 31.7171, 82.9391)
Luminance0.3171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D371EC #8AEC71
analogous
#9571EC #D371EC #EC71C7
triadic
#D371EC #ECD371 #71ECD3
tetradic
#D371EC #EC9571 #8AEC71 #71C7EC
square
#D371EC #EC9571 #8AEC71 #71C7EC
split-complementary
#D371EC #C7EC71 #71EC95
monochromatic
#A51BC8 #C23BE5 #D371EC #E4A7F3 #F4DDFA

Accessibility & contrast

On white

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

On black

7.34
#D371EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D371EC
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D371EC#FFFFFF#000000##000000
##D371EC1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d371ec;
/* rgb */ color: rgb(211, 113, 236);
/* oklch */ color: oklch(70.6% 0.196 319.2);
Tailwind
colors: {
  custom: {
    50: '#e39df2',
    500: '#d371ec',
    950: '#000000',
  },
}
SCSS
$custom: #d371ec;
$custom-light: #e39df2;
$custom-dark: #000000;
JSON
{
  "hex": "#d371ec",
  "rgb": {
    "r": 211,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 287.805,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.70579,
    "c": 0.19638,
    "h": 319.2
  },
  "luminance": 0.31715
}

Semantic roles & 50–950 ramp

primary
#D371EC
secondary
#D1EFCA
accent
#D90D36
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D371EC

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

Preview Lab → · Contrast checker → · Palette generator →

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