#CD51A9#CD51A9

#CD51A9 is a light, vivid pink. Relative luminance 0.217; OKLCH L 62.5% C 0.185 H 340.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#CD51A9
RGBrgb(205, 81, 169)
HSLhsl(317, 55%, 56%)
HSVhsv(317, 60%, 80%)
CMYKcmyk(0%, 60.5%, 17.6%, 19.6%)
CIE-LABlab(53.74, 58.73, -22.84)
CIE-LCHlch(53.74, 63.02, 338.75°)
OKLaboklab(62.54% 0.1744 -0.0613)
OKLCHoklch(62.54% 0.185 340.6)
XYZxyz(35.2815, 21.7316, 39.8649)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51A9 #51CD75
analogous
#B351CD #CD51A9 #CD516B
triadic
#CD51A9 #A9CD51 #51A9CD
tetradic
#CD51A9 #CDB351 #51CD75 #516BCD
square
#CD51A9 #CDB351 #51CD75 #516BCD
split-complementary
#CD51A9 #6BCD51 #51CDB3
monochromatic
#7F2565 #AF328A #CD51A9 #DB81C0 #E8B0D8

Accessibility & contrast

On white

3.93
#CD51A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#CD51A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51A9
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51A9#FFFFFF#000000##000000
##CD51A91.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5874AC
Deuteranopia (green-blind)
#7D88A6
Tritanopia (blue-blind)
#D85376
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd51a9;
/* rgb */ color: rgb(205, 81, 169);
/* oklch */ color: oklch(62.5% 0.185 340.6);
Tailwind
colors: {
  custom: {
    50: '#df89c2',
    500: '#cd51a9',
    950: '#000000',
  },
}
SCSS
$custom: #cd51a9;
$custom-light: #df89c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51a9",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 169
  },
  "hsl": {
    "h": 317.419,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62539,
    "c": 0.18484,
    "h": 340.6
  },
  "luminance": 0.21729
}

Semantic roles & 50–950 ramp

primary
#CD51A9
secondary
#A3D7B2
accent
#DF7549
background
#FEF8FB
surface
#FCF0F7
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CD51A9

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

Preview Lab → · Contrast checker → · Palette generator →

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