#CC4271#CC4271

#CC4271 is a mid, vivid pink. Relative luminance 0.179; OKLCH L 58.7% C 0.177 H 3.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#CC4271
RGBrgb(204, 66, 113)
HSLhsl(340, 58%, 53%)
HSVhsv(340, 68%, 80%)
CMYKcmyk(0%, 67.6%, 44.6%, 20%)
CIE-LABlab(49.41, 57.86, 4.02)
CIE-LCHlch(49.41, 58.00, 3.97°)
OKLaboklab(58.69% 0.1769 0.011)
OKLCHoklch(58.69% 0.177 3.5)
XYZxyz(29.8329, 17.9298, 17.5094)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC4271 #42CC9D
analogous
#CC42B6 #CC4271 #CC5842
triadic
#CC4271 #71CC42 #4271CC
tetradic
#CC4271 #B6CC42 #42CC9D #5842CC
square
#CC4271 #B6CC42 #42CC9D #5842CC
split-complementary
#CC4271 #42CC58 #42B6CC
monochromatic
#741F3C #A42C55 #CC4271 #D97295 #E6A2B9

Accessibility & contrast

On white

4.58
#CC4271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#CC4271 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC4271
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC4271#FFFFFF#000000##000000
##CC42711.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F6472
Deuteranopia (green-blind)
#847F6E
Tritanopia (blue-blind)
#DD2E55
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #cc4271;
/* rgb */ color: rgb(204, 66, 113);
/* oklch */ color: oklch(58.7% 0.177 3.5);
Tailwind
colors: {
  custom: {
    50: '#e17f99',
    500: '#cc4271',
    950: '#000000',
  },
}
SCSS
$custom: #cc4271;
$custom-light: #e17f99;
$custom-dark: #000000;
JSON
{
  "hex": "#cc4271",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 339.565,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58687,
    "c": 0.17719,
    "h": 3.5
  },
  "luminance": 0.17926
}

Semantic roles & 50–950 ramp

primary
#CC4271
secondary
#97D3BE
accent
#E1AC47
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#160B0D
muted
#847C7E

Preview Lab

Preview with #CC4271

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

Preview Lab → · Contrast checker → · Palette generator →

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