#CC2F71#CC2F71

#CC2F71 is a mid, vivid pink. Relative luminance 0.161; OKLCH L 57.0% C 0.198 H 0.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CC2F71
RGBrgb(204, 47, 113)
HSLhsl(335, 63%, 49%)
HSVhsv(335, 77%, 80%)
CMYKcmyk(0%, 77%, 44.6%, 20%)
CIE-LABlab(47.06, 64.41, 0.61)
CIE-LCHlch(47.06, 64.41, 0.55°)
OKLaboklab(56.96% 0.1978 0.0023)
OKLCHoklch(56.96% 0.198 0.7)
XYZxyz(28.9013, 16.0665, 17.1988)
Luminance0.1606 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2F71 #2FCC8A
analogous
#CC2FC0 #CC2F71 #CC3B2F
triadic
#CC2F71 #71CC2F #2F71CC
tetradic
#CC2F71 #C0CC2F #2FCC8A #3B2FCC
square
#CC2F71 #C0CC2F #2FCC8A #3B2FCC
split-complementary
#CC2F71 #2FCC3B #2FC0CC
monochromatic
#69183A #9A2455 #CC2F71 #DA5E92 #E590B4

Accessibility & contrast

On white

4.99
#CC2F71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#CC2F71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2F71
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2F71#FFFFFF#000000##FFFFFF
##CC2F711.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#545C73
Deuteranopia (green-blind)
#7E7A6D
Tritanopia (blue-blind)
#DD0B4C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #cc2f71;
/* rgb */ color: rgb(204, 47, 113);
/* oklch */ color: oklch(57.0% 0.198 0.7);
Tailwind
colors: {
  custom: {
    50: '#e17799',
    500: '#cc2f71',
    950: '#000000',
  },
}
SCSS
$custom: #cc2f71;
$custom-light: #e17799;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2f71",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 334.777,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56955,
    "c": 0.19781,
    "h": 0.7
  },
  "luminance": 0.16063
}

Semantic roles & 50–950 ramp

primary
#CC2F71
secondary
#87D0B1
accent
#E6A142
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0D
muted
#847C7E

Preview Lab

Preview with #CC2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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