#CC3871#CC3871

#CC3871 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.7% C 0.189 H 1.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#CC3871
RGBrgb(204, 56, 113)
HSLhsl(337, 59%, 51%)
HSVhsv(337, 73%, 80%)
CMYKcmyk(0%, 72.5%, 44.6%, 20%)
CIE-LABlab(48.09, 61.53, 2.10)
CIE-LCHlch(48.09, 61.57, 1.96°)
OKLaboklab(57.71% 0.1886 0.0061)
OKLCHoklch(57.71% 0.189 1.9)
XYZxyz(29.2989, 16.8618, 17.3314)
Luminance0.1686 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC3871 #38CC93
analogous
#CC38BB #CC3871 #CC4938
triadic
#CC3871 #71CC38 #3871CC
tetradic
#CC3871 #BBCC38 #38CC93 #4938CC
square
#CC3871 #BBCC38 #38CC93 #4938CC
split-complementary
#CC3871 #38CC49 #38BBCC
monochromatic
#6E1C3B #9E2956 #CC3871 #D86994 #E599B7

Accessibility & contrast

On white

4.80
#CC3871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#CC3871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC3871
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC3871#FFFFFF#000000##FFFFFF
##CC38711.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596072
Deuteranopia (green-blind)
#817D6E
Tritanopia (blue-blind)
#DD1F50
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #cc3871;
/* rgb */ color: rgb(204, 56, 113);
/* oklch */ color: oklch(57.7% 0.189 1.9);
Tailwind
colors: {
  custom: {
    50: '#e17b99',
    500: '#cc3871',
    950: '#000000',
  },
}
SCSS
$custom: #cc3871;
$custom-light: #e17b99;
$custom-dark: #000000;
JSON
{
  "hex": "#cc3871",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 336.892,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57708,
    "c": 0.18867,
    "h": 1.9
  },
  "luminance": 0.16858
}

Semantic roles & 50–950 ramp

primary
#CC3871
secondary
#8FD1B7
accent
#E2A645
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#160A0D
muted
#847C7E

Preview Lab

Preview with #CC3871

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

Preview Lab → · Contrast checker → · Palette generator →

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