#CD51B4#CD51B4

#CD51B4 is a light, vivid pink. Relative luminance 0.222; OKLCH L 63.0% C 0.193 H 336.3°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#CD51B4
RGBrgb(205, 81, 180)
HSLhsl(312, 55%, 56%)
HSVhsv(312, 60%, 80%)
CMYKcmyk(0%, 60.5%, 12.2%, 19.6%)
CIE-LABlab(54.20, 60.38, -28.53)
CIE-LCHlch(54.20, 66.78, 334.71°)
OKLaboklab(63.03% 0.1764 -0.0774)
OKLCHoklch(63.03% 0.193 336.3)
XYZxyz(36.3579, 22.1622, 45.5340)
Luminance0.2216 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51B4 #51CD6A
analogous
#A851CD #CD51B4 #CD5176
triadic
#CD51B4 #B4CD51 #51B4CD
tetradic
#CD51B4 #CDA851 #51CD6A #5176CD
square
#CD51B4 #CDA851 #51CD6A #5176CD
split-complementary
#CD51B4 #76CD51 #51CDA8
monochromatic
#7F256D #AF3296 #CD51B4 #DB81C8 #E8B0DD

Accessibility & contrast

On white

3.87
#CD51B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#CD51B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51B4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51B4#FFFFFF#000000##000000
##CD51B41.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5376B7
Deuteranopia (green-blind)
#7988B1
Tritanopia (blue-blind)
#D7577B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cd51b4;
/* rgb */ color: rgb(205, 81, 180);
/* oklch */ color: oklch(63.0% 0.193 336.3);
Tailwind
colors: {
  custom: {
    50: '#df89ca',
    500: '#cd51b4',
    950: '#000000',
  },
}
SCSS
$custom: #cd51b4;
$custom-light: #df89ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51b4",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 312.097,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.63025,
    "c": 0.19265,
    "h": 336.3
  },
  "luminance": 0.22159
}

Semantic roles & 50–950 ramp

primary
#CD51B4
secondary
#A3D7AE
accent
#DF6749
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #CD51B4

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

Preview Lab → · Contrast checker → · Palette generator →

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