#CC42A4#CC42A4

#CC42A4 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.6% C 0.201 H 341.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#CC42A4
RGBrgb(204, 66, 164)
HSLhsl(317, 58%, 53%)
HSVhsv(317, 68%, 80%)
CMYKcmyk(0%, 67.6%, 19.6%, 20%)
CIE-LABlab(51.17, 63.84, -23.87)
CIE-LCHlch(51.17, 68.15, 339.50°)
OKLaboklab(60.56% 0.1908 -0.0641)
OKLCHoklch(60.56% 0.201 341.4)
XYZxyz(33.5518, 19.4173, 37.0957)
Luminance0.1941 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42A4 #42CC6A
analogous
#AF42CC #CC42A4 #CC425F
triadic
#CC42A4 #A4CC42 #42A4CC
tetradic
#CC42A4 #CCAF42 #42CC6A #425FCC
square
#CC42A4 #CCAF42 #42CC6A #425FCC
split-complementary
#CC42A4 #5FCC42 #42CCAF
monochromatic
#741F5C #A42C82 #CC42A4 #D972BB #E6A2D2

Accessibility & contrast

On white

4.30
#CC42A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#CC42A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42A4
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42A4#FFFFFF#000000##000000
##CC42A41.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6CA7
Deuteranopia (green-blind)
#7782A1
Tritanopia (blue-blind)
#D8446D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc42a4;
/* rgb */ color: rgb(204, 66, 164);
/* oklch */ color: oklch(60.6% 0.201 341.4);
Tailwind
colors: {
  custom: {
    50: '#df81bf',
    500: '#cc42a4',
    950: '#000000',
  },
}
SCSS
$custom: #cc42a4;
$custom-light: #df81bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42a4",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 317.391,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60559,
    "c": 0.20125,
    "h": 341.4
  },
  "luminance": 0.19414
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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