#DC31B2#DC31B2

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

Color values

HEX#DC31B2
RGBrgb(220, 49, 178)
HSLhsl(315, 71%, 53%)
HSVhsv(315, 78%, 86%)
CMYKcmyk(0%, 77.7%, 19.1%, 13.7%)
CIE-LABlab(52.54, 74.99, -29.75)
CIE-LCHlch(52.54, 80.68, 338.36°)
OKLaboklab(62.26% 0.2242 -0.0804)
OKLCHoklch(62.26% 0.238 340.3)
XYZxyz(38.6506, 20.6306, 44.0574)
Luminance0.2063 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC31B2 #31DC5B
analogous
#B131DC #DC31B2 #DC315C
triadic
#DC31B2 #B2DC31 #31B2DC
tetradic
#DC31B2 #DCB131 #31DC5B #315CDC
square
#DC31B2 #DCB131 #31DC5B #315CDC
split-complementary
#DC31B2 #5CDC31 #31DCB1
monochromatic
#7D1564 #B21E8D #DC31B2 #E565C6 #EE9AD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DC31B2#FFFFFF#000000##000000
##DC31B21.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#7887AE
Tritanopia (blue-blind)
#E9376F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #dc31b2;
/* rgb */ color: rgb(220, 49, 178);
/* oklch */ color: oklch(62.3% 0.238 340.3);
Tailwind
colors: {
  custom: {
    50: '#eb7cc9',
    500: '#dc31b2',
    950: '#000000',
  },
}
SCSS
$custom: #dc31b2;
$custom-light: #eb7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#dc31b2",
  "rgb": {
    "r": 220,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 314.737,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62257,
    "c": 0.2382,
    "h": 340.3
  },
  "luminance": 0.20627
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DC31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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