#DC31B3#DC31B3

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

Color values

HEX#DC31B3
RGBrgb(220, 49, 179)
HSLhsl(314, 71%, 53%)
HSVhsv(314, 78%, 86%)
CMYKcmyk(0%, 77.7%, 18.6%, 13.7%)
CIE-LABlab(52.59, 75.12, -30.27)
CIE-LCHlch(52.59, 80.99, 338.06°)
OKLaboklab(62.3% 0.2244 -0.0818)
OKLCHoklch(62.3% 0.239 340)
XYZxyz(38.7513, 20.6709, 44.5882)
Luminance0.2067 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC31B3 #31DC5A
analogous
#AF31DC #DC31B3 #DC315D
triadic
#DC31B3 #B3DC31 #31B3DC
tetradic
#DC31B3 #DCAF31 #31DC5A #315DDC
square
#DC31B3 #DCAF31 #31DC5A #315DDC
split-complementary
#DC31B3 #5DDC31 #31DCAF
monochromatic
#7D1564 #B21E8E #DC31B3 #E565C6 #EE9ADA

Accessibility & contrast

On white

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

On black

5.13
#DC31B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC31B3
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC31B3#FFFFFF#000000##000000
##DC31B31.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB6
Deuteranopia (green-blind)
#7887AF
Tritanopia (blue-blind)
#E93870
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #dc31b3;
/* rgb */ color: rgb(220, 49, 179);
/* oklch */ color: oklch(62.3% 0.239 340.0);
Tailwind
colors: {
  custom: {
    50: '#eb7cca',
    500: '#dc31b3',
    950: '#000000',
  },
}
SCSS
$custom: #dc31b3;
$custom-light: #eb7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#dc31b3",
  "rgb": {
    "r": 220,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 314.386,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62303,
    "c": 0.23881,
    "h": 340
  },
  "luminance": 0.20667
}

Semantic roles & 50–950 ramp

primary
#DC31B3
secondary
#8FD9A1
accent
#EE653A
background
#FFF8FC
surface
#FEEFF8
border
#D6CAD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #DC31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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