#D371FB#D371FB

#D371FB is a light, highly saturated purple. Relative luminance 0.326; OKLCH L 71.4% C 0.211 H 315.1°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#D371FB
RGBrgb(211, 113, 251)
HSLhsl(283, 95%, 71%)
HSVhsv(283, 55%, 98%)
CMYKcmyk(15.9%, 55%, 0%, 1.6%)
CIE-LABlab(63.86, 59.90, -53.36)
CIE-LCHlch(63.86, 80.22, 318.30°)
OKLaboklab(71.37% 0.1498 -0.1491)
OKLCHoklch(71.37% 0.211 315.1)
XYZxyz(50.1789, 32.6257, 94.9022)
Luminance0.3262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D371FB #99FB71
analogous
#8E71FB #D371FB #FB71DE
triadic
#D371FB #FBD371 #71FBD3
tetradic
#D371FB #FB8E71 #99FB71 #71DEFB
square
#D371FB #FB8E71 #99FB71 #71DEFB
split-complementary
#D371FB #DEFB71 #71FB8E
monochromatic
#A907EB #C135F9 #D371FB #E5ADFD #F6E1FE

Accessibility & contrast

On white

2.79
#D371FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#D371FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D371FB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D371FB#FFFFFF#000000##000000
##D371FB1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E95FF
Deuteranopia (green-blind)
#709DF7
Tritanopia (blue-blind)
#D088AC
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d371fb;
/* rgb */ color: rgb(211, 113, 251);
/* oklch */ color: oklch(71.4% 0.211 315.1);
Tailwind
colors: {
  custom: {
    50: '#e39efd',
    500: '#d371fb',
    950: '#000000',
  },
}
SCSS
$custom: #d371fb;
$custom-light: #e39efd;
$custom-dark: #000000;
JSON
{
  "hex": "#d371fb",
  "rgb": {
    "r": 211,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 282.609,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71372,
    "c": 0.21131,
    "h": 315.1
  },
  "luminance": 0.32624
}

Semantic roles & 50–950 ramp

primary
#D371FB
secondary
#DCF6D2
accent
#E60043
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D371FB

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

Preview Lab → · Contrast checker → · Palette generator →

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