#CD517B#CD517B

#CD517B is a mid, vivid pink. Relative luminance 0.203; OKLCH L 60.9% C 0.162 H 2.1°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CD517B
RGBrgb(205, 81, 123)
HSLhsl(340, 55%, 56%)
HSVhsv(340, 60%, 80%)
CMYKcmyk(0%, 60.5%, 40%, 19.6%)
CIE-LABlab(52.17, 52.89, 2.01)
CIE-LCHlch(52.17, 52.93, 2.18°)
OKLaboklab(60.86% 0.1614 0.0059)
OKLCHoklch(60.86% 0.162 2.1)
XYZxyz(31.6964, 20.2976, 20.9837)
Luminance0.2029 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD517B #51CDA3
analogous
#CD51B9 #CD517B #CD6551
triadic
#CD517B #7BCD51 #517BCD
tetradic
#CD517B #B9CD51 #51CDA3 #6551CD
square
#CD517B #B9CD51 #51CDA3 #6551CD
split-complementary
#CD517B #51CD65 #51B9CD
monochromatic
#7F2543 #AF325C #CD517B #DB819F #E8B0C3

Accessibility & contrast

On white

4.15
#CD517B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CD517B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD517B
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD517B#FFFFFF#000000##000000
##CD517B1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#686D7C
Deuteranopia (green-blind)
#898578
Tritanopia (blue-blind)
#DD4461
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd517b;
/* rgb */ color: rgb(205, 81, 123);
/* oklch */ color: oklch(60.9% 0.162 2.1);
Tailwind
colors: {
  custom: {
    50: '#e188a1',
    500: '#cd517b',
    950: '#000000',
  },
}
SCSS
$custom: #cd517b;
$custom-light: #e188a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd517b",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 123
  },
  "hsl": {
    "h": 339.677,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60862,
    "c": 0.1615,
    "h": 2.1
  },
  "luminance": 0.20294
}

Semantic roles & 50–950 ramp

primary
#CD517B
secondary
#A3D7C5
accent
#DFAC49
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0E
muted
#847D7E

Preview Lab

Preview with #CD517B

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

Preview Lab → · Contrast checker → · Palette generator →

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