#CD51A4#CD51A4

#CD51A4 is a light, vivid pink. Relative luminance 0.215; OKLCH L 62.3% C 0.182 H 342.7°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#CD51A4
RGBrgb(205, 81, 164)
HSLhsl(320, 55%, 56%)
HSVhsv(320, 60%, 80%)
CMYKcmyk(0%, 60.5%, 20%, 19.6%)
CIE-LABlab(53.54, 58.01, -20.21)
CIE-LCHlch(53.54, 61.43, 340.79°)
OKLaboklab(62.33% 0.1733 -0.054)
OKLCHoklch(62.33% 0.182 342.7)
XYZxyz(34.8210, 21.5475, 37.4399)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51A4 #51CD7A
analogous
#B851CD #CD51A4 #CD5166
triadic
#CD51A4 #A4CD51 #51A4CD
tetradic
#CD51A4 #CDB851 #51CD7A #5166CD
square
#CD51A4 #CDB851 #51CD7A #5166CD
split-complementary
#CD51A4 #66CD51 #51CDB8
monochromatic
#7F2561 #AF3285 #CD51A4 #DB81BD #E8B0D6

Accessibility & contrast

On white

3.96
#CD51A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#CD51A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51A4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51A4#FFFFFF#000000##000000
##CD51A41.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A7
Deuteranopia (green-blind)
#7F87A1
Tritanopia (blue-blind)
#D95273
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd51a4;
/* rgb */ color: rgb(205, 81, 164);
/* oklch */ color: oklch(62.3% 0.182 342.7);
Tailwind
colors: {
  custom: {
    50: '#df89bf',
    500: '#cd51a4',
    950: '#000000',
  },
}
SCSS
$custom: #cd51a4;
$custom-light: #df89bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51a4",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 164
  },
  "hsl": {
    "h": 319.839,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62329,
    "c": 0.18152,
    "h": 342.7
  },
  "luminance": 0.21544
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD51A4

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

Preview Lab → · Contrast checker → · Palette generator →

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