#CC42AF#CC42AF

#CC42AF is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.1% C 0.209 H 337.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CC42AF
RGBrgb(204, 66, 175)
HSLhsl(313, 58%, 53%)
HSVhsv(313, 68%, 80%)
CMYKcmyk(0%, 67.6%, 14.2%, 20%)
CIE-LABlab(51.65, 65.39, -29.59)
CIE-LCHlch(51.65, 71.78, 335.65°)
OKLaboklab(61.06% 0.1925 -0.0803)
OKLCHoklch(61.06% 0.209 337.4)
XYZxyz(34.5885, 19.8320, 42.5554)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42AF #42CC5F
analogous
#A442CC #CC42AF #CC426A
triadic
#CC42AF #AFCC42 #42AFCC
tetradic
#CC42AF #CCA442 #42CC5F #426ACC
square
#CC42AF #CCA442 #42CC5F #426ACC
split-complementary
#CC42AF #6ACC42 #42CCA4
monochromatic
#741F62 #A42C8B #CC42AF #D972C3 #E6A2D8

Accessibility & contrast

On white

4.23
#CC42AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#CC42AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42AF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42AF#FFFFFF#000000##000000
##CC42AF1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#466EB2
Deuteranopia (green-blind)
#7383AC
Tritanopia (blue-blind)
#D74973
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc42af;
/* rgb */ color: rgb(204, 66, 175);
/* oklch */ color: oklch(61.1% 0.209 337.4);
Tailwind
colors: {
  custom: {
    50: '#df81c7',
    500: '#cc42af',
    950: '#000000',
  },
}
SCSS
$custom: #cc42af;
$custom-light: #df81c7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42af",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 312.609,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.6106,
    "c": 0.20859,
    "h": 337.4
  },
  "luminance": 0.19829
}

Semantic roles & 50–950 ramp

primary
#CC42AF
secondary
#97D3A4
accent
#E16747
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC42AF

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

Preview Lab → · Contrast checker → · Palette generator →

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