#DB31B7#DB31B7

#DB31B7 is a light, highly saturated pink. Relative luminance 0.207; OKLCH L 62.3% C 0.241 H 338.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#DB31B7
RGBrgb(219, 49, 183)
HSLhsl(313, 70%, 53%)
HSVhsv(313, 78%, 86%)
CMYKcmyk(0%, 77.6%, 16.4%, 14.1%)
CIE-LABlab(52.60, 75.42, -32.60)
CIE-LCHlch(52.60, 82.17, 336.63°)
OKLaboklab(62.34% 0.2239 -0.0885)
OKLCHoklch(62.34% 0.241 338.4)
XYZxyz(38.8599, 20.6794, 46.7355)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB31B7 #31DB55
analogous
#AA31DB #DB31B7 #DB3162
triadic
#DB31B7 #B7DB31 #31B7DB
tetradic
#DB31B7 #DBAA31 #31DB55 #3162DB
square
#DB31B7 #DBAA31 #31DB55 #3162DB
split-complementary
#DB31B7 #62DB31 #31DBAA
monochromatic
#7C1666 #B01F91 #DB31B7 #E465C9 #ED99DB

Accessibility & contrast

On white

4.09
#DB31B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#DB31B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB31B7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB31B7#FFFFFF#000000##000000
##DB31B71.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6DBA
Deuteranopia (green-blind)
#7587B3
Tritanopia (blue-blind)
#E73A72
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #db31b7;
/* rgb */ color: rgb(219, 49, 183);
/* oklch */ color: oklch(62.3% 0.241 338.4);
Tailwind
colors: {
  custom: {
    50: '#eb7ccd',
    500: '#db31b7',
    950: '#000000',
  },
}
SCSS
$custom: #db31b7;
$custom-light: #eb7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#db31b7",
  "rgb": {
    "r": 219,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 312.706,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.62337,
    "c": 0.24074,
    "h": 338.4
  },
  "luminance": 0.20676
}

Semantic roles & 50–950 ramp

primary
#DB31B7
secondary
#8FD99F
accent
#ED613B
background
#FFF8FC
surface
#FEEFF9
border
#D6CAD2
text
#170B13
muted
#857C82

Preview Lab

Preview with #DB31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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