#CC42AB#CC42AB

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

Color values

HEX#CC42AB
RGBrgb(204, 66, 171)
HSLhsl(314, 58%, 53%)
HSVhsv(314, 68%, 80%)
CMYKcmyk(0%, 67.6%, 16.2%, 20%)
CIE-LABlab(51.47, 64.82, -27.53)
CIE-LCHlch(51.47, 70.42, 336.99°)
OKLaboklab(60.87% 0.1919 -0.0744)
OKLCHoklch(60.87% 0.206 338.8)
XYZxyz(34.2015, 19.6772, 40.5170)
Luminance0.1967 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42AB #42CC63
analogous
#A842CC #CC42AB #CC4266
triadic
#CC42AB #ABCC42 #42ABCC
tetradic
#CC42AB #CCA842 #42CC63 #4266CC
square
#CC42AB #CCA842 #42CC63 #4266CC
split-complementary
#CC42AB #66CC42 #42CCA8
monochromatic
#741F60 #A42C88 #CC42AB #D972C0 #E6A2D6

Accessibility & contrast

On white

4.26
#CC42AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CC42AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42AB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42AB#FFFFFF#000000##000000
##CC42AB1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#496DAE
Deuteranopia (green-blind)
#7482A8
Tritanopia (blue-blind)
#D74771
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc42ab;
/* rgb */ color: rgb(204, 66, 171);
/* oklch */ color: oklch(60.9% 0.206 338.8);
Tailwind
colors: {
  custom: {
    50: '#df81c4',
    500: '#cc42ab',
    950: '#000000',
  },
}
SCSS
$custom: #cc42ab;
$custom-light: #df81c4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42ab",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 314.348,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60874,
    "c": 0.20586,
    "h": 338.8
  },
  "luminance": 0.19674
}

Semantic roles & 50–950 ramp

primary
#CC42AB
secondary
#97D3A5
accent
#E16C47
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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