#CD51AB#CD51AB

#CD51AB is a light, vivid pink. Relative luminance 0.218; OKLCH L 62.6% C 0.186 H 339.8°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#CD51AB
RGBrgb(205, 81, 171)
HSLhsl(316, 55%, 56%)
HSVhsv(316, 60%, 80%)
CMYKcmyk(0%, 60.5%, 16.6%, 19.6%)
CIE-LABlab(53.82, 59.03, -23.88)
CIE-LCHlch(53.82, 63.67, 337.97°)
OKLaboklab(62.63% 0.1748 -0.0642)
OKLCHoklch(62.63% 0.186 339.8)
XYZxyz(35.4707, 21.8073, 40.8613)
Luminance0.2180 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51AB #51CD73
analogous
#B151CD #CD51AB #CD516D
triadic
#CD51AB #ABCD51 #51ABCD
tetradic
#CD51AB #CDB151 #51CD73 #516DCD
square
#CD51AB #CDB151 #51CD73 #516DCD
split-complementary
#CD51AB #6DCD51 #51CDB1
monochromatic
#7F2566 #AF328C #CD51AB #DB81C2 #E8B0D9

Accessibility & contrast

On white

3.92
#CD51AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#CD51AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51AB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51AB#FFFFFF#000000##000000
##CD51AB1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5774AE
Deuteranopia (green-blind)
#7C88A8
Tritanopia (blue-blind)
#D85477
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cd51ab;
/* rgb */ color: rgb(205, 81, 171);
/* oklch */ color: oklch(62.6% 0.186 339.8);
Tailwind
colors: {
  custom: {
    50: '#df89c4',
    500: '#cd51ab',
    950: '#000000',
  },
}
SCSS
$custom: #cd51ab;
$custom-light: #df89c4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51ab",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 316.452,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62625,
    "c": 0.18621,
    "h": 339.8
  },
  "luminance": 0.21804
}

Semantic roles & 50–950 ramp

primary
#CD51AB
secondary
#A3D7B1
accent
#DF7249
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C12
muted
#847D81

Preview Lab

Preview with #CD51AB

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

Preview Lab → · Contrast checker → · Palette generator →

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