#DB31D1#DB31D1

#DB31D1 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.7% C 0.258 H 330.8°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#DB31D1
RGBrgb(219, 49, 209)
HSLhsl(304, 70%, 53%)
HSVhsv(304, 78%, 86%)
CMYKcmyk(0%, 77.6%, 4.6%, 14.1%)
CIE-LABlab(53.88, 79.08, -45.58)
CIE-LCHlch(53.88, 91.27, 330.04°)
OKLaboklab(63.67% 0.2252 -0.1258)
OKLCHoklch(63.67% 0.258 330.8)
XYZxyz(41.8203, 21.8636, 62.3267)
Luminance0.2186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB31D1 #31DB3B
analogous
#9031DB #DB31D1 #DB317C
triadic
#DB31D1 #D1DB31 #31D1DB
tetradic
#DB31D1 #DB9031 #31DB3B #317CDB
square
#DB31D1 #DB9031 #31DB3B #317CDB
split-complementary
#DB31D1 #7CDB31 #31DB90
monochromatic
#7C1676 #B01FA7 #DB31D1 #E465DD #ED99E8

Accessibility & contrast

On white

3.91
#DB31D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#DB31D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB31D1
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB31D1#FFFFFF#000000##000000
##DB31D11.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1972D5
Deuteranopia (green-blind)
#6989CD
Tritanopia (blue-blind)
#E44981
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #db31d1;
/* rgb */ color: rgb(219, 49, 209);
/* oklch */ color: oklch(63.7% 0.258 330.8);
Tailwind
colors: {
  custom: {
    50: '#eb7ddf',
    500: '#db31d1',
    950: '#000000',
  },
}
SCSS
$custom: #db31d1;
$custom-light: #eb7ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#db31d1",
  "rgb": {
    "r": 219,
    "g": 49,
    "b": 209
  },
  "hsl": {
    "h": 303.529,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.63674,
    "c": 0.25793,
    "h": 330.8
  },
  "luminance": 0.2186
}

Semantic roles & 50–950 ramp

primary
#DB31D1
secondary
#8FD993
accent
#ED453B
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#170B15
muted
#857C83

Preview Lab

Preview with #DB31D1

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

Preview Lab → · Contrast checker → · Palette generator →

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