#CD51AF#CD51AF

#CD51AF is a light, vivid pink. Relative luminance 0.220; OKLCH L 62.8% C 0.189 H 338.2°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#CD51AF
RGBrgb(205, 81, 175)
HSLhsl(315, 55%, 56%)
HSVhsv(315, 60%, 80%)
CMYKcmyk(0%, 60.5%, 14.6%, 19.6%)
CIE-LABlab(53.99, 59.62, -25.95)
CIE-LCHlch(53.99, 65.02, 336.48°)
OKLaboklab(62.8% 0.1755 -0.0701)
OKLCHoklch(62.8% 0.189 338.2)
XYZxyz(35.8577, 21.9621, 42.8997)
Luminance0.2196 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51AF #51CD6F
analogous
#AD51CD #CD51AF #CD5171
triadic
#CD51AF #AFCD51 #51AFCD
tetradic
#CD51AF #CDAD51 #51CD6F #5171CD
square
#CD51AF #CDAD51 #51CD6F #5171CD
split-complementary
#CD51AF #71CD51 #51CDAD
monochromatic
#7F2569 #AF3291 #CD51AF #DB81C5 #E8B0DB

Accessibility & contrast

On white

3.89
#CD51AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#CD51AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51AF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51AF#FFFFFF#000000##000000
##CD51AF1.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5575B2
Deuteranopia (green-blind)
#7B88AC
Tritanopia (blue-blind)
#D85679
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cd51af;
/* rgb */ color: rgb(205, 81, 175);
/* oklch */ color: oklch(62.8% 0.189 338.2);
Tailwind
colors: {
  custom: {
    50: '#df89c7',
    500: '#cd51af',
    950: '#000000',
  },
}
SCSS
$custom: #cd51af;
$custom-light: #df89c7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51af",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 314.516,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.628,
    "c": 0.18902,
    "h": 338.2
  },
  "luminance": 0.21959
}

Semantic roles & 50–950 ramp

primary
#CD51AF
secondary
#A3D7B0
accent
#DF6D49
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #CD51AF

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

Preview Lab → · Contrast checker → · Palette generator →

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