#CD51B2#CD51B2

#CD51B2 is a light, vivid pink. Relative luminance 0.221; OKLCH L 62.9% C 0.191 H 337.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#CD51B2
RGBrgb(205, 81, 178)
HSLhsl(313, 55%, 56%)
HSVhsv(313, 60%, 80%)
CMYKcmyk(0%, 60.5%, 13.2%, 19.6%)
CIE-LABlab(54.11, 60.07, -27.50)
CIE-LCHlch(54.11, 66.07, 335.40°)
OKLaboklab(62.93% 0.1761 -0.0745)
OKLCHoklch(62.93% 0.191 337.1)
XYZxyz(36.1556, 22.0813, 44.4687)
Luminance0.2208 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51B2 #51CD6C
analogous
#AA51CD #CD51B2 #CD5174
triadic
#CD51B2 #B2CD51 #51B2CD
tetradic
#CD51B2 #CDAA51 #51CD6C #5174CD
square
#CD51B2 #CDAA51 #51CD6C #5174CD
split-complementary
#CD51B2 #74CD51 #51CDAA
monochromatic
#7F256B #AF3294 #CD51B2 #DB81C7 #E8B0DC

Accessibility & contrast

On white

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

On black

5.42
#CD51B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51B2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51B2#FFFFFF#000000##000000
##CD51B21.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5475B5
Deuteranopia (green-blind)
#7A88AF
Tritanopia (blue-blind)
#D7577A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cd51b2;
/* rgb */ color: rgb(205, 81, 178);
/* oklch */ color: oklch(62.9% 0.191 337.1);
Tailwind
colors: {
  custom: {
    50: '#df89c9',
    500: '#cd51b2',
    950: '#000000',
  },
}
SCSS
$custom: #cd51b2;
$custom-light: #df89c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51b2",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 313.065,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62934,
    "c": 0.19118,
    "h": 337.1
  },
  "luminance": 0.22078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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