#CC5271#CC5271

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

Color values

HEX#CC5271
RGBrgb(204, 82, 113)
HSLhsl(345, 54%, 56%)
HSVhsv(345, 60%, 80%)
CMYKcmyk(0%, 59.8%, 44.6%, 20%)
CIE-LABlab(51.91, 51.08, 7.60)
CIE-LCHlch(51.91, 51.64, 8.46°)
OKLaboklab(60.55% 0.1554 0.02)
OKLCHoklch(60.55% 0.157 7.3)
XYZxyz(30.9019, 20.0678, 17.8657)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5271 #52CCAD
analogous
#CC52AE #CC5271 #CC7052
triadic
#CC5271 #71CC52 #5271CC
tetradic
#CC5271 #AECC52 #52CCAD #7052CC
square
#CC5271 #AECC52 #52CCAD #7052CC
split-complementary
#CC5271 #52CC70 #52AECC
monochromatic
#7E253C #AE3352 #CC5271 #DA8198 #E8B1BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC5271#FFFFFF#000000##000000
##CC52711.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)
#6B6D72
Deuteranopia (green-blind)
#8B856E
Tritanopia (blue-blind)
#DD435E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cc5271;
/* rgb */ color: rgb(204, 82, 113);
/* oklch */ color: oklch(60.6% 0.157 7.3);
Tailwind
colors: {
  custom: {
    50: '#e08899',
    500: '#cc5271',
    950: '#000000',
  },
}
SCSS
$custom: #cc5271;
$custom-light: #e08899;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5271",
  "rgb": {
    "r": 204,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 344.754,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60551,
    "c": 0.15666,
    "h": 7.3
  },
  "luminance": 0.20064
}

Semantic roles & 50–950 ramp

primary
#CC5271
secondary
#A4D6C9
accent
#DEB84A
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0D
muted
#847D7E

Preview Lab

Preview with #CC5271

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

Preview Lab → · Contrast checker → · Palette generator →

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