#D371E7#D371E7

#D371E7 is a light, vivid purple. Relative luminance 0.314; OKLCH L 70.3% C 0.191 H 320.6°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#D371E7
RGBrgb(211, 113, 231)
HSLhsl(290, 71%, 67%)
HSVhsv(290, 51%, 91%)
CMYKcmyk(8.7%, 51.1%, 0%, 9.4%)
CIE-LABlab(62.87, 55.97, -43.86)
CIE-LCHlch(62.87, 71.11, 321.92°)
OKLaboklab(70.33% 0.148 -0.1215)
OKLCHoklch(70.33% 0.191 320.6)
XYZxyz(47.1912, 31.4306, 79.1667)
Luminance0.3143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D371E7 #85E771
analogous
#9871E7 #D371E7 #E771C0
triadic
#D371E7 #E7D371 #71E7D3
tetradic
#D371E7 #E79871 #85E771 #71C0E7
square
#D371E7 #E79871 #85E771 #71C0E7
split-complementary
#D371E7 #C0E771 #71E798
monochromatic
#A320BE #C33DDE #D371E7 #E3A5F0 #F3DAF9

Accessibility & contrast

On white

2.88
#D371E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#D371E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D371E7
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D371E7#FFFFFF#000000##000000
##D371E71.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D91EB
Deuteranopia (green-blind)
#7B9CE4
Tritanopia (blue-blind)
#D581A2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d371e7;
/* rgb */ color: rgb(211, 113, 231);
/* oklch */ color: oklch(70.3% 0.191 320.6);
Tailwind
colors: {
  custom: {
    50: '#e39def',
    500: '#d371e7',
    950: '#000000',
  },
}
SCSS
$custom: #d371e7;
$custom-light: #e39def;
$custom-dark: #000000;
JSON
{
  "hex": "#d371e7",
  "rgb": {
    "r": 211,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 289.831,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.70325,
    "c": 0.19149,
    "h": 320.6
  },
  "luminance": 0.31429
}

Semantic roles & 50–950 ramp

primary
#D371E7
secondary
#CEECC7
accent
#D31233
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D371E7

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

Preview Lab → · Contrast checker → · Palette generator →

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