#CD5271#CD5271

#CD5271 is a mid, vivid pink. Relative luminance 0.202; OKLCH L 60.7% C 0.158 H 7.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#CD5271
RGBrgb(205, 82, 113)
HSLhsl(345, 55%, 56%)
HSVhsv(345, 60%, 80%)
CMYKcmyk(0%, 60%, 44.9%, 19.6%)
CIE-LABlab(52.07, 51.41, 7.85)
CIE-LCHlch(52.07, 52.00, 8.68°)
OKLaboklab(60.7% 0.1564 0.0206)
OKLCHoklch(60.7% 0.158 7.5)
XYZxyz(31.1770, 20.2096, 17.8786)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD5271 #52CDAE
analogous
#CD52AF #CD5271 #CD7152
triadic
#CD5271 #71CD52 #5271CD
tetradic
#CD5271 #AFCD52 #52CDAE #7152CD
square
#CD5271 #AFCD52 #52CDAE #7152CD
split-complementary
#CD5271 #52CD71 #52AFCD
monochromatic
#80253C #AF3352 #CD5271 #DB8198 #E8B1BF

Accessibility & contrast

On white

4.17
#CD5271 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#CD5271 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD5271
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD5271#FFFFFF#000000##000000
##CD52711.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd5271;
/* rgb */ color: rgb(205, 82, 113);
/* oklch */ color: oklch(60.7% 0.158 7.5);
Tailwind
colors: {
  custom: {
    50: '#e18899',
    500: '#cd5271',
    950: '#000000',
  },
}
SCSS
$custom: #cd5271;
$custom-light: #e18899;
$custom-dark: #000000;
JSON
{
  "hex": "#cd5271",
  "rgb": {
    "r": 205,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 344.878,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60701,
    "c": 0.15771,
    "h": 7.5
  },
  "luminance": 0.20206
}

Semantic roles & 50–950 ramp

primary
#CD5271
secondary
#A4D7CA
accent
#DEB949
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0D
muted
#847D7E

Preview Lab

Preview with #CD5271

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

Preview Lab → · Contrast checker → · Palette generator →

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