#CC42AC#CC42AC

#CC42AC is a mid, highly saturated pink. Relative luminance 0.197; OKLCH L 60.9% C 0.207 H 338.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CC42AC
RGBrgb(204, 66, 172)
HSLhsl(314, 58%, 53%)
HSVhsv(314, 68%, 80%)
CMYKcmyk(0%, 67.6%, 15.7%, 20%)
CIE-LABlab(51.51, 64.96, -28.04)
CIE-LCHlch(51.51, 70.75, 336.65°)
OKLaboklab(60.92% 0.1921 -0.0759)
OKLCHoklch(60.92% 0.207 338.4)
XYZxyz(34.2971, 19.7155, 41.0209)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42AC #42CC62
analogous
#A742CC #CC42AC #CC4267
triadic
#CC42AC #ACCC42 #42ACCC
tetradic
#CC42AC #CCA742 #42CC62 #4267CC
square
#CC42AC #CCA742 #42CC62 #4267CC
split-complementary
#CC42AC #67CC42 #42CCA7
monochromatic
#741F61 #A42C89 #CC42AC #D972C1 #E6A2D6

Accessibility & contrast

On white

4.25
#CC42AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CC42AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42AC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42AC#FFFFFF#000000##000000
##CC42AC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#486DAF
Deuteranopia (green-blind)
#7483A9
Tritanopia (blue-blind)
#D74871
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc42ac;
/* rgb */ color: rgb(204, 66, 172);
/* oklch */ color: oklch(60.9% 0.207 338.4);
Tailwind
colors: {
  custom: {
    50: '#df81c5',
    500: '#cc42ac',
    950: '#000000',
  },
}
SCSS
$custom: #cc42ac;
$custom-light: #df81c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42ac",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 313.913,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.6092,
    "c": 0.20653,
    "h": 338.4
  },
  "luminance": 0.19712
}

Semantic roles & 50–950 ramp

primary
#CC42AC
secondary
#97D3A5
accent
#E16B47
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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