#CD51B5#CD51B5

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

Color values

HEX#CD51B5
RGBrgb(205, 81, 181)
HSLhsl(312, 55%, 56%)
HSVhsv(312, 60%, 80%)
CMYKcmyk(0%, 60.5%, 11.7%, 19.6%)
CIE-LABlab(54.24, 60.53, -29.04)
CIE-LCHlch(54.24, 67.14, 334.37°)
OKLaboklab(63.07% 0.1766 -0.0788)
OKLCHoklch(63.07% 0.193 335.9)
XYZxyz(36.4601, 22.2031, 46.0724)
Luminance0.2220 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51B5 #51CD69
analogous
#A751CD #CD51B5 #CD5177
triadic
#CD51B5 #B5CD51 #51B5CD
tetradic
#CD51B5 #CDA751 #51CD69 #5177CD
square
#CD51B5 #CDA751 #51CD69 #5177CD
split-complementary
#CD51B5 #77CD51 #51CDA7
monochromatic
#7F256E #AF3297 #CD51B5 #DB81C9 #E8B0DD

Accessibility & contrast

On white

3.86
#CD51B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#CD51B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51B5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51B5#FFFFFF#000000##000000
##CD51B51.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5276B8
Deuteranopia (green-blind)
#7989B2
Tritanopia (blue-blind)
#D7587C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cd51b5;
/* rgb */ color: rgb(205, 81, 181);
/* oklch */ color: oklch(63.1% 0.193 335.9);
Tailwind
colors: {
  custom: {
    50: '#df89cb',
    500: '#cd51b5',
    950: '#000000',
  },
}
SCSS
$custom: #cd51b5;
$custom-light: #df89cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51b5",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 181
  },
  "hsl": {
    "h": 311.613,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.63071,
    "c": 0.19338,
    "h": 335.9
  },
  "luminance": 0.222
}

Semantic roles & 50–950 ramp

primary
#CD51B5
secondary
#A3D7AD
accent
#DF6649
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #CD51B5

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

Preview Lab → · Contrast checker → · Palette generator →

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