#DB31C1#DB31C1

#DB31C1 is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.8% C 0.247 H 335.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#DB31C1
RGBrgb(219, 49, 193)
HSLhsl(309, 70%, 53%)
HSVhsv(309, 78%, 86%)
CMYKcmyk(0%, 77.6%, 11.9%, 14.1%)
CIE-LABlab(53.07, 76.78, -37.66)
CIE-LCHlch(53.07, 85.52, 333.88°)
OKLaboklab(62.83% 0.2247 -0.103)
OKLCHoklch(62.83% 0.247 335.4)
XYZxyz(39.9380, 21.1106, 52.4131)
Luminance0.2111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB31C1 #31DB4B
analogous
#A031DB #DB31C1 #DB316C
triadic
#DB31C1 #C1DB31 #31C1DB
tetradic
#DB31C1 #DBA031 #31DB4B #316CDB
square
#DB31C1 #DBA031 #31DB4B #316CDB
split-complementary
#DB31C1 #6CDB31 #31DBA0
monochromatic
#7C166C #B01F9A #DB31C1 #E465D1 #ED99E0

Accessibility & contrast

On white

4.02
#DB31C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#DB31C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB31C1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB31C1#FFFFFF#000000##000000
##DB31C11.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#316FC5
Deuteranopia (green-blind)
#7188BD
Tritanopia (blue-blind)
#E64078
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #db31c1;
/* rgb */ color: rgb(219, 49, 193);
/* oklch */ color: oklch(62.8% 0.247 335.4);
Tailwind
colors: {
  custom: {
    50: '#eb7cd4',
    500: '#db31c1',
    950: '#000000',
  },
}
SCSS
$custom: #db31c1;
$custom-light: #eb7cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#db31c1",
  "rgb": {
    "r": 219,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 309.176,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.62831,
    "c": 0.24716,
    "h": 335.4
  },
  "luminance": 0.21107
}

Semantic roles & 50–950 ramp

primary
#DB31C1
secondary
#8FD99A
accent
#ED563B
background
#FFF8FD
surface
#FEEFFA
border
#D6CAD3
text
#170B14
muted
#857C83

Preview Lab

Preview with #DB31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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