#D371F8#D371F8

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

Color values

HEX#D371F8
RGBrgb(211, 113, 248)
HSLhsl(284, 91%, 71%)
HSVhsv(284, 54%, 97%)
CMYKcmyk(14.9%, 54.4%, 0%, 2.7%)
CIE-LABlab(63.70, 59.30, -51.95)
CIE-LCHlch(63.70, 78.84, 318.78°)
OKLaboklab(71.21% 0.1496 -0.145)
OKLCHoklch(71.21% 0.208 315.9)
XYZxyz(49.7098, 32.4381, 92.4314)
Luminance0.3244 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D371F8 #96F871
analogous
#8F71F8 #D371F8 #F871D9
triadic
#D371F8 #F8D371 #71F8D3
tetradic
#D371F8 #F88F71 #96F871 #71D9F8
square
#D371F8 #F88F71 #96F871 #71D9F8
split-complementary
#D371F8 #D9F871 #71F88F
monochromatic
#A80BE3 #C137F5 #D371F8 #E5ABFB #F6E2FE

Accessibility & contrast

On white

2.80
#D371F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.49
#D371F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D371F8
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D371F8#FFFFFF#000000##000000
##D371F81.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5094FC
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#D187AA
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d371f8;
/* rgb */ color: rgb(211, 113, 248);
/* oklch */ color: oklch(71.2% 0.208 315.9);
Tailwind
colors: {
  custom: {
    50: '#e39efb',
    500: '#d371f8',
    950: '#000000',
  },
}
SCSS
$custom: #d371f8;
$custom-light: #e39efb;
$custom-dark: #000000;
JSON
{
  "hex": "#d371f8",
  "rgb": {
    "r": 211,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 283.556,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.7121,
    "c": 0.2083,
    "h": 315.9
  },
  "luminance": 0.32436
}

Semantic roles & 50–950 ramp

primary
#D371F8
secondary
#DAF5D0
accent
#E6003F
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D371F8

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

Preview Lab → · Contrast checker → · Palette generator →

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