#DC31AF#DC31AF

#DC31AF is a light, highly saturated pink. Relative luminance 0.205; OKLCH L 62.1% C 0.236 H 341.3°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#DC31AF
RGBrgb(220, 49, 175)
HSLhsl(316, 71%, 53%)
HSVhsv(316, 78%, 86%)
CMYKcmyk(0%, 77.7%, 20.5%, 13.7%)
CIE-LABlab(52.41, 74.61, -28.20)
CIE-LCHlch(52.41, 79.76, 339.29°)
OKLaboklab(62.12% 0.2239 -0.076)
OKLCHoklch(62.12% 0.236 341.3)
XYZxyz(38.3527, 20.5114, 42.4884)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC31AF #31DC5E
analogous
#B331DC #DC31AF #DC315A
triadic
#DC31AF #AFDC31 #31AFDC
tetradic
#DC31AF #DCB331 #31DC5E #315ADC
square
#DC31AF #DCB331 #31DC5E #315ADC
split-complementary
#DC31AF #5ADC31 #31DCB3
monochromatic
#7D1562 #B21E8B #DC31AF #E565C3 #EE9AD8

Accessibility & contrast

On white

4.12
#DC31AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#DC31AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC31AF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC31AF#FFFFFF#000000##000000
##DC31AF1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#416CB2
Deuteranopia (green-blind)
#7987AB
Tritanopia (blue-blind)
#EA356E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #dc31af;
/* rgb */ color: rgb(220, 49, 175);
/* oklch */ color: oklch(62.1% 0.236 341.3);
Tailwind
colors: {
  custom: {
    50: '#eb7cc7',
    500: '#dc31af',
    950: '#000000',
  },
}
SCSS
$custom: #dc31af;
$custom-light: #eb7cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#dc31af",
  "rgb": {
    "r": 220,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 315.789,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62118,
    "c": 0.2364,
    "h": 341.3
  },
  "luminance": 0.20507
}

Semantic roles & 50–950 ramp

primary
#DC31AF
secondary
#8FD9A3
accent
#EE693A
background
#FFF8FC
surface
#FEEFF8
border
#D6CAD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #DC31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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