#CC42B3#CC42B3

#CC42B3 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.3% C 0.211 H 335.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CC42B3
RGBrgb(204, 66, 179)
HSLhsl(311, 58%, 53%)
HSVhsv(311, 68%, 80%)
CMYKcmyk(0%, 67.6%, 12.3%, 20%)
CIE-LABlab(51.83, 65.98, -31.65)
CIE-LCHlch(51.83, 73.18, 334.37°)
OKLaboklab(61.25% 0.193 -0.0862)
OKLCHoklch(61.25% 0.211 335.9)
XYZxyz(34.9872, 19.9915, 44.6552)
Luminance0.1999 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42B3 #42CC5B
analogous
#A042CC #CC42B3 #CC426E
triadic
#CC42B3 #B3CC42 #42B3CC
tetradic
#CC42B3 #CCA042 #42CC5B #426ECC
square
#CC42B3 #CCA042 #42CC5B #426ECC
split-complementary
#CC42B3 #6ECC42 #42CCA0
monochromatic
#741F65 #A42C8F #CC42B3 #D972C6 #E6A2DA

Accessibility & contrast

On white

4.20
#CC42B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#CC42B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42B3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42B3#FFFFFF#000000##000000
##CC42B31.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#436EB6
Deuteranopia (green-blind)
#7183B0
Tritanopia (blue-blind)
#D64B75
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cc42b3;
/* rgb */ color: rgb(204, 66, 179);
/* oklch */ color: oklch(61.3% 0.211 335.9);
Tailwind
colors: {
  custom: {
    50: '#df81ca',
    500: '#cc42b3',
    950: '#000000',
  },
}
SCSS
$custom: #cc42b3;
$custom-light: #df81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42b3",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 310.87,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.6125,
    "c": 0.21139,
    "h": 335.9
  },
  "luminance": 0.19988
}

Semantic roles & 50–950 ramp

primary
#CC42B3
secondary
#97D3A2
accent
#E16347
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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