#CD51A2#CD51A2

#CD51A2 is a light, vivid pink. Relative luminance 0.215; OKLCH L 62.2% C 0.180 H 343.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#CD51A2
RGBrgb(205, 81, 162)
HSLhsl(321, 55%, 56%)
HSVhsv(321, 60%, 80%)
CMYKcmyk(0%, 60.5%, 21%, 19.6%)
CIE-LABlab(53.47, 57.73, -19.16)
CIE-LCHlch(53.47, 60.83, 341.64°)
OKLaboklab(62.25% 0.1729 -0.051)
OKLCHoklch(62.25% 0.18 343.5)
XYZxyz(34.6418, 21.4758, 36.4962)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51A2 #51CD7C
analogous
#BA51CD #CD51A2 #CD5164
triadic
#CD51A2 #A2CD51 #51A2CD
tetradic
#CD51A2 #CDBA51 #51CD7C #5164CD
square
#CD51A2 #CDBA51 #51CD7C #5164CD
split-complementary
#CD51A2 #64CD51 #51CDBA
monochromatic
#7F2560 #AF3283 #CD51A2 #DB81BB #E8B0D5

Accessibility & contrast

On white

3.97
#CD51A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#CD51A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51A2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51A2#FFFFFF#000000##000000
##CD51A21.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A5
Deuteranopia (green-blind)
#7F879F
Tritanopia (blue-blind)
#D95172
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd51a2;
/* rgb */ color: rgb(205, 81, 162);
/* oklch */ color: oklch(62.2% 0.180 343.5);
Tailwind
colors: {
  custom: {
    50: '#df88bd',
    500: '#cd51a2',
    950: '#000000',
  },
}
SCSS
$custom: #cd51a2;
$custom-light: #df88bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51a2",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 320.806,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62247,
    "c": 0.18023,
    "h": 343.5
  },
  "luminance": 0.21473
}

Semantic roles & 50–950 ramp

primary
#CD51A2
secondary
#A3D7B5
accent
#DF7D49
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CD51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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