#CD51A8#CD51A8

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

Color values

HEX#CD51A8
RGBrgb(205, 81, 168)
HSLhsl(318, 55%, 56%)
HSVhsv(318, 60%, 80%)
CMYKcmyk(0%, 60.5%, 18%, 19.6%)
CIE-LABlab(53.70, 58.59, -22.31)
CIE-LCHlch(53.70, 62.69, 339.15°)
OKLaboklab(62.5% 0.1742 -0.0598)
OKLCHoklch(62.5% 0.184 341)
XYZxyz(35.1879, 21.6942, 39.3724)
Luminance0.2169 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51A8 #51CD76
analogous
#B451CD #CD51A8 #CD516A
triadic
#CD51A8 #A8CD51 #51A8CD
tetradic
#CD51A8 #CDB451 #51CD76 #516ACD
square
#CD51A8 #CDB451 #51CD76 #516ACD
split-complementary
#CD51A8 #6ACD51 #51CDB4
monochromatic
#7F2564 #AF3289 #CD51A8 #DB81C0 #E8B0D8

Accessibility & contrast

On white

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

On black

5.34
#CD51A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51A8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51A8#FFFFFF#000000##000000
##CD51A81.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5974AB
Deuteranopia (green-blind)
#7D88A5
Tritanopia (blue-blind)
#D85375
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd51a8;
/* rgb */ color: rgb(205, 81, 168);
/* oklch */ color: oklch(62.5% 0.184 341.0);
Tailwind
colors: {
  custom: {
    50: '#df89c2',
    500: '#cd51a8',
    950: '#000000',
  },
}
SCSS
$custom: #cd51a8;
$custom-light: #df89c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51a8",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 317.903,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62497,
    "c": 0.18416,
    "h": 341
  },
  "luminance": 0.21691
}

Semantic roles & 50–950 ramp

primary
#CD51A8
secondary
#A3D7B3
accent
#DF7649
background
#FEF8FB
surface
#FCF0F7
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CD51A8

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

Preview Lab → · Contrast checker → · Palette generator →

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