#CC42A7#CC42A7

#CC42A7 is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.7% C 0.203 H 340.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#CC42A7
RGBrgb(204, 66, 167)
HSLhsl(316, 58%, 53%)
HSVhsv(316, 68%, 80%)
CMYKcmyk(0%, 67.6%, 18.1%, 20%)
CIE-LABlab(51.30, 64.25, -25.44)
CIE-LCHlch(51.30, 69.11, 338.40°)
OKLaboklab(60.69% 0.1913 -0.0685)
OKLCHoklch(60.69% 0.203 340.3)
XYZxyz(33.8260, 19.5270, 38.5393)
Luminance0.1952 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42A7 #42CC67
analogous
#AC42CC #CC42A7 #CC4262
triadic
#CC42A7 #A7CC42 #42A7CC
tetradic
#CC42A7 #CCAC42 #42CC67 #4262CC
square
#CC42A7 #CCAC42 #42CC67 #4262CC
split-complementary
#CC42A7 #62CC42 #42CCAC
monochromatic
#741F5D #A42C84 #CC42A7 #D972BD #E6A2D4

Accessibility & contrast

On white

4.28
#CC42A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CC42A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42A7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42A7#FFFFFF#000000##000000
##CC42A71.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6CAA
Deuteranopia (green-blind)
#7682A4
Tritanopia (blue-blind)
#D8466F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc42a7;
/* rgb */ color: rgb(204, 66, 167);
/* oklch */ color: oklch(60.7% 0.203 340.3);
Tailwind
colors: {
  custom: {
    50: '#df81c1',
    500: '#cc42a7',
    950: '#000000',
  },
}
SCSS
$custom: #cc42a7;
$custom-light: #df81c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42a7",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 316.087,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60693,
    "c": 0.2032,
    "h": 340.3
  },
  "luminance": 0.19524
}

Semantic roles & 50–950 ramp

primary
#CC42A7
secondary
#97D3A7
accent
#E17047
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC42A7

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

Preview Lab → · Contrast checker → · Palette generator →

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