#CC2F7E#CC2F7E

#CC2F7E is a mid, highly saturated pink. Relative luminance 0.164; OKLCH L 57.4% C 0.203 H 355.2°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CC2F7E
RGBrgb(204, 47, 126)
HSLhsl(330, 63%, 49%)
HSVhsv(330, 77%, 80%)
CMYKcmyk(0%, 77%, 38.2%, 20%)
CIE-LABlab(47.47, 65.67, -6.73)
CIE-LCHlch(47.47, 66.01, 354.15°)
OKLaboklab(57.39% 0.2018 -0.0169)
OKLCHoklch(57.39% 0.203 355.2)
XYZxyz(29.6863, 16.3805, 21.3331)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2F7E #2FCC7D
analogous
#CC2FCC #CC2F7E #CC2F2F
triadic
#CC2F7E #7ECC2F #2F7ECC
tetradic
#CC2F7E #CCCC2F #2FCC7D #2F2FCC
square
#CC2F7E #CCCC2F #2FCC7D #2F2FCC
split-complementary
#CC2F7E #2FCC2F #2FCCCC
monochromatic
#691841 #9A245F #CC2F7E #DA5E9C #E590BB

Accessibility & contrast

On white

4.91
#CC2F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#CC2F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2F7E
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2F7E#FFFFFF#000000##FFFFFF
##CC2F7E1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5E80
Deuteranopia (green-blind)
#7B7B7A
Tritanopia (blue-blind)
#DC1953
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #cc2f7e;
/* rgb */ color: rgb(204, 47, 126);
/* oklch */ color: oklch(57.4% 0.203 355.2);
Tailwind
colors: {
  custom: {
    50: '#e177a3',
    500: '#cc2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #cc2f7e;
$custom-light: #e177a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2f7e",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 329.809,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57387,
    "c": 0.20252,
    "h": 355.2
  },
  "luminance": 0.16377
}

Semantic roles & 50–950 ramp

primary
#CC2F7E
secondary
#87D0AB
accent
#E69342
background
#FEF7FA
surface
#FDEEF3
border
#D5C9CD
text
#160A0F
muted
#847C7F

Preview Lab

Preview with #CC2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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