#CD51A5#CD51A5

#CD51A5 is a light, vivid pink. Relative luminance 0.216; OKLCH L 62.4% C 0.182 H 342.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#CD51A5
RGBrgb(205, 81, 165)
HSLhsl(319, 55%, 56%)
HSVhsv(319, 60%, 80%)
CMYKcmyk(0%, 60.5%, 19.5%, 19.6%)
CIE-LABlab(53.58, 58.16, -20.74)
CIE-LCHlch(53.58, 61.74, 340.37°)
OKLaboklab(62.37% 0.1735 -0.0554)
OKLCHoklch(62.37% 0.182 342.3)
XYZxyz(34.9117, 21.5837, 37.9174)
Luminance0.2158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51A5 #51CD79
analogous
#B751CD #CD51A5 #CD5167
triadic
#CD51A5 #A5CD51 #51A5CD
tetradic
#CD51A5 #CDB751 #51CD79 #5167CD
square
#CD51A5 #CDB751 #51CD79 #5167CD
split-complementary
#CD51A5 #67CD51 #51CDB7
monochromatic
#7F2562 #AF3286 #CD51A5 #DB81BE #E8B0D6

Accessibility & contrast

On white

3.95
#CD51A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#CD51A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51A5
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51A5#FFFFFF#000000##000000
##CD51A51.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A73A8
Deuteranopia (green-blind)
#7E87A2
Tritanopia (blue-blind)
#D95274
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd51a5;
/* rgb */ color: rgb(205, 81, 165);
/* oklch */ color: oklch(62.4% 0.182 342.3);
Tailwind
colors: {
  custom: {
    50: '#df89bf',
    500: '#cd51a5',
    950: '#000000',
  },
}
SCSS
$custom: #cd51a5;
$custom-light: #df89bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51a5",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 319.355,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6237,
    "c": 0.18217,
    "h": 342.3
  },
  "luminance": 0.21581
}

Semantic roles & 50–950 ramp

primary
#CD51A5
secondary
#A3D7B4
accent
#DF7949
background
#FEF8FB
surface
#FCF0F7
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CD51A5

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

Preview Lab → · Contrast checker → · Palette generator →

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