#CD31AD#CD31AD

#CD31AD is a mid, highly saturated pink. Relative luminance 0.182; OKLCH L 59.7% C 0.227 H 337.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#CD31AD
RGBrgb(205, 49, 173)
HSLhsl(312, 61%, 50%)
HSVhsv(312, 76%, 80%)
CMYKcmyk(0%, 76.1%, 15.6%, 19.6%)
CIE-LABlab(49.73, 70.97, -31.39)
CIE-LCHlch(49.73, 77.60, 336.14°)
OKLaboklab(59.68% 0.2101 -0.0853)
OKLCHoklch(59.68% 0.227 337.9)
XYZxyz(33.8187, 18.1962, 41.2582)
Luminance0.1819 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD31AD #31CD51
analogous
#9F31CD #CD31AD #CD315F
triadic
#CD31AD #ADCD31 #31ADCD
tetradic
#CD31AD #CD9F31 #31CD51 #315FCD
square
#CD31AD #CD9F31 #31CD51 #315FCD
split-complementary
#CD31AD #5FCD31 #31CD9F
monochromatic
#6A195A #9C2583 #CD31AD #D962C1 #E593D4

Accessibility & contrast

On white

4.53
#CD31AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#CD31AD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD31AD
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD31AD#FFFFFF#000000##000000
##CD31AD1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3867B0
Deuteranopia (green-blind)
#6E7FA9
Tritanopia (blue-blind)
#D83A6C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cd31ad;
/* rgb */ color: rgb(205, 49, 173);
/* oklch */ color: oklch(59.7% 0.227 337.9);
Tailwind
colors: {
  custom: {
    50: '#e07ac6',
    500: '#cd31ad',
    950: '#000000',
  },
}
SCSS
$custom: #cd31ad;
$custom-light: #e07ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd31ad",
  "rgb": {
    "r": 205,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 312.308,
    "s": 61.417,
    "l": 49.804
  },
  "oklch": {
    "l": 0.59677,
    "c": 0.22673,
    "h": 337.9
  },
  "luminance": 0.18193
}

Semantic roles & 50–950 ramp

primary
#CD31AD
secondary
#8AD098
accent
#E56443
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CD31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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