#D371F7#D371F7

#D371F7 is a light, highly saturated purple. Relative luminance 0.324; OKLCH L 71.2% C 0.207 H 316.2°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#D371F7
RGBrgb(211, 113, 247)
HSLhsl(284, 89%, 71%)
HSVhsv(284, 54%, 97%)
CMYKcmyk(14.6%, 54.3%, 0%, 3.1%)
CIE-LABlab(63.65, 59.10, -51.48)
CIE-LCHlch(63.65, 78.38, 318.94°)
OKLaboklab(71.16% 0.1495 -0.1436)
OKLCHoklch(71.16% 0.207 316.2)
XYZxyz(49.5551, 32.3762, 91.6165)
Luminance0.3237 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D371F7 #95F771
analogous
#9071F7 #D371F7 #F771D8
triadic
#D371F7 #F7D371 #71F7D3
tetradic
#D371F7 #F79071 #95F771 #71D8F7
square
#D371F7 #F79071 #95F771 #71D8F7
split-complementary
#D371F7 #D8F771 #71F790
monochromatic
#A80DE1 #C137F4 #D371F7 #E5ABFA #F6E2FD

Accessibility & contrast

On white

2.81
#D371F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#D371F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D371F7
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D371F7#FFFFFF#000000##000000
##D371F71.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5194FB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#D186AA
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d371f7;
/* rgb */ color: rgb(211, 113, 247);
/* oklch */ color: oklch(71.2% 0.207 316.2);
Tailwind
colors: {
  custom: {
    50: '#e39efa',
    500: '#d371f7',
    950: '#000000',
  },
}
SCSS
$custom: #d371f7;
$custom-light: #e39efa;
$custom-dark: #000000;
JSON
{
  "hex": "#d371f7",
  "rgb": {
    "r": 211,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 283.881,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71156,
    "c": 0.2073,
    "h": 316.2
  },
  "luminance": 0.32375
}

Semantic roles & 50–950 ramp

primary
#D371F7
secondary
#D9F4D0
accent
#E6003E
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D371F7

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

Preview Lab → · Contrast checker → · Palette generator →

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