#CD51B8#CD51B8

#CD51B8 is a light, vivid pink. Relative luminance 0.223; OKLCH L 63.2% C 0.196 H 334.8°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#CD51B8
RGBrgb(205, 81, 184)
HSLhsl(310, 55%, 56%)
HSVhsv(310, 60%, 80%)
CMYKcmyk(0%, 60.5%, 10.2%, 19.6%)
CIE-LABlab(54.37, 61.00, -30.58)
CIE-LCHlch(54.37, 68.23, 333.38°)
OKLaboklab(63.21% 0.1771 -0.0832)
OKLCHoklch(63.21% 0.196 334.8)
XYZxyz(36.7712, 22.3275, 47.7111)
Luminance0.2233 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51B8 #51CD66
analogous
#A451CD #CD51B8 #CD517A
triadic
#CD51B8 #B8CD51 #51B8CD
tetradic
#CD51B8 #CDA451 #51CD66 #517ACD
square
#CD51B8 #CDA451 #51CD66 #517ACD
split-complementary
#CD51B8 #7ACD51 #51CDA4
monochromatic
#7F2570 #AF329A #CD51B8 #DB81CB #E8B0DF

Accessibility & contrast

On white

3.84
#CD51B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#CD51B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51B8
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51B8#FFFFFF#000000##000000
##CD51B81.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5176BB
Deuteranopia (green-blind)
#7789B5
Tritanopia (blue-blind)
#D6597D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cd51b8;
/* rgb */ color: rgb(205, 81, 184);
/* oklch */ color: oklch(63.2% 0.196 334.8);
Tailwind
colors: {
  custom: {
    50: '#df89cd',
    500: '#cd51b8',
    950: '#000000',
  },
}
SCSS
$custom: #cd51b8;
$custom-light: #df89cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51b8",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 184
  },
  "hsl": {
    "h": 310.161,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6321,
    "c": 0.19563,
    "h": 334.8
  },
  "luminance": 0.22325
}

Semantic roles & 50–950 ramp

primary
#CD51B8
secondary
#A3D7AC
accent
#DF6249
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160C13
muted
#847D82

Preview Lab

Preview with #CD51B8

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

Preview Lab → · Contrast checker → · Palette generator →

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