#CC42A6#CC42A6

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

Color values

HEX#CC42A6
RGBrgb(204, 66, 166)
HSLhsl(317, 58%, 53%)
HSVhsv(317, 68%, 80%)
CMYKcmyk(0%, 67.6%, 18.6%, 20%)
CIE-LABlab(51.26, 64.11, -24.92)
CIE-LCHlch(51.26, 68.78, 338.76°)
OKLaboklab(60.65% 0.1911 -0.0671)
OKLCHoklch(60.65% 0.203 340.7)
XYZxyz(33.7339, 19.4902, 38.0544)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42A6 #42CC68
analogous
#AD42CC #CC42A6 #CC4261
triadic
#CC42A6 #A6CC42 #42A6CC
tetradic
#CC42A6 #CCAD42 #42CC68 #4261CC
square
#CC42A6 #CCAD42 #42CC68 #4261CC
split-complementary
#CC42A6 #61CC42 #42CCAD
monochromatic
#741F5D #A42C83 #CC42A6 #D972BD #E6A2D3

Accessibility & contrast

On white

4.29
#CC42A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC42A6#FFFFFF#000000##000000
##CC42A61.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6CA9
Deuteranopia (green-blind)
#7682A3
Tritanopia (blue-blind)
#D8456E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc42a6;
/* rgb */ color: rgb(204, 66, 166);
/* oklch */ color: oklch(60.6% 0.203 340.7);
Tailwind
colors: {
  custom: {
    50: '#df81c0',
    500: '#cc42a6',
    950: '#000000',
  },
}
SCSS
$custom: #cc42a6;
$custom-light: #df81c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42a6",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 316.522,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60648,
    "c": 0.20254,
    "h": 340.7
  },
  "luminance": 0.19487
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC42A6

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

Preview Lab → · Contrast checker → · Palette generator →

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