#CC2F5E#CC2F5E

#CC2F5E is a mid, vivid pink. Relative luminance 0.157; OKLCH L 56.4% C 0.193 H 8.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CC2F5E
RGBrgb(204, 47, 94)
HSLhsl(342, 63%, 49%)
HSVhsv(342, 77%, 80%)
CMYKcmyk(0%, 77%, 53.9%, 20%)
CIE-LABlab(46.56, 62.83, 11.58)
CIE-LCHlch(46.56, 63.89, 10.45°)
OKLaboklab(56.42% 0.1911 0.0295)
OKLCHoklch(56.42% 0.193 8.8)
XYZxyz(27.9414, 15.6825, 12.1432)
Luminance0.1568 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2F5E #2FCC9D
analogous
#CC2FAD #CC2F5E #CC4E2F
triadic
#CC2F5E #5ECC2F #2F5ECC
tetradic
#CC2F5E #ADCC2F #2FCC9D #4E2FCC
square
#CC2F5E #ADCC2F #2FCC9D #4E2FCC
split-complementary
#CC2F5E #2FCC4E #2FADCC
monochromatic
#691830 #9A2447 #CC2F5E #DA5E83 #E590AA

Accessibility & contrast

On white

5.08
#CC2F5E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#CC2F5E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2F5E
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2F5E#FFFFFF#000000##FFFFFF
##CC2F5E1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#595A5F
Deuteranopia (green-blind)
#817A5A
Tritanopia (blue-blind)
#DF0043
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #cc2f5e;
/* rgb */ color: rgb(204, 47, 94);
/* oklch */ color: oklch(56.4% 0.193 8.8);
Tailwind
colors: {
  custom: {
    50: '#e2768b',
    500: '#cc2f5e',
    950: '#000000',
  },
}
SCSS
$custom: #cc2f5e;
$custom-light: #e2768b;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2f5e",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 94
  },
  "hsl": {
    "h": 342.038,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56417,
    "c": 0.19333,
    "h": 8.8
  },
  "luminance": 0.15679
}

Semantic roles & 50–950 ramp

primary
#CC2F5E
secondary
#87D0BA
accent
#E6B542
background
#FEF7F8
surface
#FDEEF0
border
#D5C9CB
text
#170A0B
muted
#857C7C

Preview Lab

Preview with #CC2F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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