#CC2FAF#CC2FAF

#CC2FAF is a mid, highly saturated pink. Relative luminance 0.180; OKLCH L 59.5% C 0.229 H 336.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#CC2FAF
RGBrgb(204, 47, 175)
HSLhsl(311, 63%, 49%)
HSVhsv(311, 77%, 80%)
CMYKcmyk(0%, 77%, 14.2%, 20%)
CIE-LABlab(49.46, 71.59, -33.01)
CIE-LCHlch(49.46, 78.84, 335.24°)
OKLaboklab(59.48% 0.211 -0.0899)
OKLCHoklch(59.48% 0.229 336.9)
XYZxyz(33.6569, 17.9687, 42.2449)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2FAF #2FCC4C
analogous
#9B2FCC #CC2FAF #CC2F61
triadic
#CC2FAF #AFCC2F #2FAFCC
tetradic
#CC2FAF #CC9B2F #2FCC4C #2F61CC
square
#CC2FAF #CC9B2F #2FCC4C #2F61CC
split-complementary
#CC2FAF #61CC2F #2FCC9B
monochromatic
#69185A #9A2484 #CC2FAF #DA5EC3 #E590D6

Accessibility & contrast

On white

4.57
#CC2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC2FAF#FFFFFF#000000##000000
##CC2FAF1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3466B2
Deuteranopia (green-blind)
#6C7EAB
Tritanopia (blue-blind)
#D73A6D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc2faf;
/* rgb */ color: rgb(204, 47, 175);
/* oklch */ color: oklch(59.5% 0.229 336.9);
Tailwind
colors: {
  custom: {
    50: '#e079c7',
    500: '#cc2faf',
    950: '#000000',
  },
}
SCSS
$custom: #cc2faf;
$custom-light: #e079c7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2faf",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 311.083,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59478,
    "c": 0.22938,
    "h": 336.9
  },
  "luminance": 0.17966
}

Semantic roles & 50–950 ramp

primary
#CC2FAF
secondary
#87D094
accent
#E66042
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CC2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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