#CD5172#CD5172

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

Color values

HEX#CD5172
RGBrgb(205, 81, 114)
HSLhsl(344, 55%, 56%)
HSVhsv(344, 60%, 80%)
CMYKcmyk(0%, 60.5%, 44.4%, 19.6%)
CIE-LABlab(51.93, 51.96, 7.05)
CIE-LCHlch(51.93, 52.43, 7.72°)
OKLaboklab(60.6% 0.1582 0.0186)
OKLCHoklch(60.6% 0.159 6.7)
XYZxyz(31.1587, 20.0825, 18.1518)
Luminance0.2008 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD5172 #51CDAC
analogous
#CD51B0 #CD5172 #CD6E51
triadic
#CD5172 #72CD51 #5172CD
tetradic
#CD5172 #B0CD51 #51CDAC #6E51CD
square
#CD5172 #B0CD51 #51CDAC #6E51CD
split-complementary
#CD5172 #51CD6E #51B0CD
monochromatic
#7F253D #AF3253 #CD5172 #DB8199 #E8B0BF

Accessibility & contrast

On white

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

On black

5.02
#CD5172 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD5172
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD5172#FFFFFF#000000##000000
##CD51721.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A6C73
Deuteranopia (green-blind)
#8B856F
Tritanopia (blue-blind)
#DE415E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd5172;
/* rgb */ color: rgb(205, 81, 114);
/* oklch */ color: oklch(60.6% 0.159 6.7);
Tailwind
colors: {
  custom: {
    50: '#e1879a',
    500: '#cd5172',
    950: '#000000',
  },
}
SCSS
$custom: #cd5172;
$custom-light: #e1879a;
$custom-dark: #000000;
JSON
{
  "hex": "#cd5172",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 344.032,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60603,
    "c": 0.15924,
    "h": 6.7
  },
  "luminance": 0.20079
}

Semantic roles & 50–950 ramp

primary
#CD5172
secondary
#A3D7C9
accent
#DFB749
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0E
muted
#847D7E

Preview Lab

Preview with #CD5172

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

Preview Lab → · Contrast checker → · Palette generator →

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