#DB31B5#DB31B5

#DB31B5 is a light, highly saturated pink. Relative luminance 0.206; OKLCH L 62.2% C 0.239 H 339.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#DB31B5
RGBrgb(219, 49, 181)
HSLhsl(313, 70%, 53%)
HSVhsv(313, 78%, 86%)
CMYKcmyk(0%, 77.6%, 17.4%, 14.1%)
CIE-LABlab(52.51, 75.16, -31.57)
CIE-LCHlch(52.51, 81.52, 337.21°)
OKLaboklab(62.24% 0.2237 -0.0856)
OKLCHoklch(62.24% 0.239 339.1)
XYZxyz(38.6533, 20.5968, 45.6470)
Luminance0.2059 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB31B5 #31DB57
analogous
#AC31DB #DB31B5 #DB3160
triadic
#DB31B5 #B5DB31 #31B5DB
tetradic
#DB31B5 #DBAC31 #31DB57 #3160DB
square
#DB31B5 #DBAC31 #31DB57 #3160DB
split-complementary
#DB31B5 #60DB31 #31DBAC
monochromatic
#7C1665 #B01F90 #DB31B5 #E465C8 #ED99DA

Accessibility & contrast

On white

4.10
#DB31B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#DB31B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB31B5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB31B5#FFFFFF#000000##000000
##DB31B51.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6CB8
Deuteranopia (green-blind)
#7687B1
Tritanopia (blue-blind)
#E83971
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #db31b5;
/* rgb */ color: rgb(219, 49, 181);
/* oklch */ color: oklch(62.2% 0.239 339.1);
Tailwind
colors: {
  custom: {
    50: '#eb7ccb',
    500: '#db31b5',
    950: '#000000',
  },
}
SCSS
$custom: #db31b5;
$custom-light: #eb7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#db31b5",
  "rgb": {
    "r": 219,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 313.412,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.62242,
    "c": 0.23949,
    "h": 339.1
  },
  "luminance": 0.20593
}

Semantic roles & 50–950 ramp

primary
#DB31B5
secondary
#8FD99F
accent
#ED633B
background
#FFF8FC
surface
#FEEFF8
border
#D6CAD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #DB31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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