#DC31B1#DC31B1

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

Color values

HEX#DC31B1
RGBrgb(220, 49, 177)
HSLhsl(315, 71%, 53%)
HSVhsv(315, 78%, 86%)
CMYKcmyk(0%, 77.7%, 19.5%, 13.7%)
CIE-LABlab(52.50, 74.86, -29.23)
CIE-LCHlch(52.50, 80.37, 338.67°)
OKLaboklab(62.21% 0.2241 -0.0789)
OKLCHoklch(62.21% 0.238 340.6)
XYZxyz(38.5505, 20.5906, 43.5306)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC31B1 #31DC5C
analogous
#B231DC #DC31B1 #DC315B
triadic
#DC31B1 #B1DC31 #31B1DC
tetradic
#DC31B1 #DCB231 #31DC5C #315BDC
square
#DC31B1 #DCB231 #31DC5C #315BDC
split-complementary
#DC31B1 #5BDC31 #31DCB2
monochromatic
#7D1563 #B21E8D #DC31B1 #E565C5 #EE9AD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DC31B1#FFFFFF#000000##000000
##DC31B11.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)
#406CB4
Deuteranopia (green-blind)
#7887AD
Tritanopia (blue-blind)
#E9366F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #dc31b1;
/* rgb */ color: rgb(220, 49, 177);
/* oklch */ color: oklch(62.2% 0.238 340.6);
Tailwind
colors: {
  custom: {
    50: '#eb7cc8',
    500: '#dc31b1',
    950: '#000000',
  },
}
SCSS
$custom: #dc31b1;
$custom-light: #eb7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#dc31b1",
  "rgb": {
    "r": 220,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 315.088,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6221,
    "c": 0.2376,
    "h": 340.6
  },
  "luminance": 0.20587
}

Semantic roles & 50–950 ramp

primary
#DC31B1
secondary
#8FD9A2
accent
#EE673A
background
#FFF8FC
surface
#FEEFF8
border
#D6CAD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #DC31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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