#CD5171#CD5171

#CD5171 is a mid, vivid pink. Relative luminance 0.201; OKLCH L 60.6% C 0.159 H 7.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CD5171
RGBrgb(205, 81, 113)
HSLhsl(345, 55%, 56%)
HSVhsv(345, 60%, 80%)
CMYKcmyk(0%, 60.5%, 44.9%, 19.6%)
CIE-LABlab(51.90, 51.86, 7.61)
CIE-LCHlch(51.90, 52.41, 8.35°)
OKLaboklab(60.58% 0.1578 0.02)
OKLCHoklch(60.58% 0.159 7.2)
XYZxyz(31.1021, 20.0599, 17.8537)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD5171 #51CDAD
analogous
#CD51AF #CD5171 #CD6F51
triadic
#CD5171 #71CD51 #5171CD
tetradic
#CD5171 #AFCD51 #51CDAD #6F51CD
square
#CD5171 #AFCD51 #51CDAD #6F51CD
split-complementary
#CD5171 #51CD6F #51AFCD
monochromatic
#7F253C #AF3252 #CD5171 #DB8198 #E8B0BF

Accessibility & contrast

On white

4.19
#CD5171 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CD5171 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD5171
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD5171#FFFFFF#000000##000000
##CD51711.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B6C72
Deuteranopia (green-blind)
#8B856E
Tritanopia (blue-blind)
#DE415D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd5171;
/* rgb */ color: rgb(205, 81, 113);
/* oklch */ color: oklch(60.6% 0.159 7.2);
Tailwind
colors: {
  custom: {
    50: '#e18799',
    500: '#cd5171',
    950: '#000000',
  },
}
SCSS
$custom: #cd5171;
$custom-light: #e18799;
$custom-dark: #000000;
JSON
{
  "hex": "#cd5171",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 113
  },
  "hsl": {
    "h": 344.516,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60575,
    "c": 0.15904,
    "h": 7.2
  },
  "luminance": 0.20056
}

Semantic roles & 50–950 ramp

primary
#CD5171
secondary
#A3D7C9
accent
#DFB849
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0D
muted
#847D7E

Preview Lab

Preview with #CD5171

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

Preview Lab → · Contrast checker → · Palette generator →

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