#CD51B1#CD51B1

#CD51B1 is a light, vivid pink. Relative luminance 0.220; OKLCH L 62.9% C 0.190 H 337.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#CD51B1
RGBrgb(205, 81, 177)
HSLhsl(314, 55%, 56%)
HSVhsv(314, 60%, 80%)
CMYKcmyk(0%, 60.5%, 13.7%, 19.6%)
CIE-LABlab(54.07, 59.92, -26.99)
CIE-LCHlch(54.07, 65.72, 335.75°)
OKLaboklab(62.89% 0.1759 -0.073)
OKLCHoklch(62.89% 0.19 337.5)
XYZxyz(36.0556, 22.0413, 43.9419)
Luminance0.2204 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51B1 #51CD6D
analogous
#AB51CD #CD51B1 #CD5173
triadic
#CD51B1 #B1CD51 #51B1CD
tetradic
#CD51B1 #CDAB51 #51CD6D #5173CD
square
#CD51B1 #CDAB51 #51CD6D #5173CD
split-complementary
#CD51B1 #73CD51 #51CDAB
monochromatic
#7F256B #AF3293 #CD51B1 #DB81C6 #E8B0DC

Accessibility & contrast

On white

3.88
#CD51B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#CD51B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51B1
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51B1#FFFFFF#000000##000000
##CD51B11.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5475B4
Deuteranopia (green-blind)
#7A88AE
Tritanopia (blue-blind)
#D7567A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cd51b1;
/* rgb */ color: rgb(205, 81, 177);
/* oklch */ color: oklch(62.9% 0.190 337.5);
Tailwind
colors: {
  custom: {
    50: '#df89c8',
    500: '#cd51b1',
    950: '#000000',
  },
}
SCSS
$custom: #cd51b1;
$custom-light: #df89c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51b1",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 177
  },
  "hsl": {
    "h": 313.548,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62889,
    "c": 0.19045,
    "h": 337.5
  },
  "luminance": 0.22038
}

Semantic roles & 50–950 ramp

primary
#CD51B1
secondary
#A3D7AF
accent
#DF6B49
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #CD51B1

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

Preview Lab → · Contrast checker → · Palette generator →

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