#CC42A5#CC42A5

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

Color values

HEX#CC42A5
RGBrgb(204, 66, 165)
HSLhsl(317, 58%, 53%)
HSVhsv(317, 68%, 80%)
CMYKcmyk(0%, 67.6%, 19.1%, 20%)
CIE-LABlab(51.21, 63.97, -24.40)
CIE-LCHlch(51.21, 68.47, 339.13°)
OKLaboklab(60.6% 0.1909 -0.0656)
OKLCHoklch(60.6% 0.202 341)
XYZxyz(33.6425, 19.4536, 37.5731)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42A5 #42CC69
analogous
#AE42CC #CC42A5 #CC4260
triadic
#CC42A5 #A5CC42 #42A5CC
tetradic
#CC42A5 #CCAE42 #42CC69 #4260CC
square
#CC42A5 #CCAE42 #42CC69 #4260CC
split-complementary
#CC42A5 #60CC42 #42CCAE
monochromatic
#741F5C #A42C82 #CC42A5 #D972BC #E6A2D3

Accessibility & contrast

On white

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

On black

4.89
#CC42A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42A5
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42A5#FFFFFF#000000##000000
##CC42A51.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6CA8
Deuteranopia (green-blind)
#7782A2
Tritanopia (blue-blind)
#D8456E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc42a5;
/* rgb */ color: rgb(204, 66, 165);
/* oklch */ color: oklch(60.6% 0.202 341.0);
Tailwind
colors: {
  custom: {
    50: '#df81c0',
    500: '#cc42a5',
    950: '#000000',
  },
}
SCSS
$custom: #cc42a5;
$custom-light: #df81c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42a5",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 316.957,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60603,
    "c": 0.20189,
    "h": 341
  },
  "luminance": 0.1945
}

Semantic roles & 50–950 ramp

primary
#CC42A5
secondary
#97D3A8
accent
#E17247
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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