#CD51A7#CD51A7

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

Color values

HEX#CD51A7
RGBrgb(205, 81, 167)
HSLhsl(318, 55%, 56%)
HSVhsv(318, 60%, 80%)
CMYKcmyk(0%, 60.5%, 18.5%, 19.6%)
CIE-LABlab(53.66, 58.44, -21.79)
CIE-LCHlch(53.66, 62.37, 339.55°)
OKLaboklab(62.45% 0.174 -0.0584)
OKLCHoklch(62.45% 0.183 341.4)
XYZxyz(35.0951, 21.6571, 38.8836)
Luminance0.2165 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51A7 #51CD77
analogous
#B551CD #CD51A7 #CD5169
triadic
#CD51A7 #A7CD51 #51A7CD
tetradic
#CD51A7 #CDB551 #51CD77 #5169CD
square
#CD51A7 #CDB551 #51CD77 #5169CD
split-complementary
#CD51A7 #69CD51 #51CDB5
monochromatic
#7F2563 #AF3288 #CD51A7 #DB81BF #E8B0D7

Accessibility & contrast

On white

3.94
#CD51A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#CD51A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51A7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51A7#FFFFFF#000000##000000
##CD51A71.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5973AA
Deuteranopia (green-blind)
#7E88A4
Tritanopia (blue-blind)
#D95375
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd51a7;
/* rgb */ color: rgb(205, 81, 167);
/* oklch */ color: oklch(62.5% 0.183 341.4);
Tailwind
colors: {
  custom: {
    50: '#df89c1',
    500: '#cd51a7',
    950: '#000000',
  },
}
SCSS
$custom: #cd51a7;
$custom-light: #df89c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51a7",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 167
  },
  "hsl": {
    "h": 318.387,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62454,
    "c": 0.18349,
    "h": 341.4
  },
  "luminance": 0.21654
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD51A7

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

Preview Lab → · Contrast checker → · Palette generator →

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