#CC42B2#CC42B2

#CC42B2 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.2% C 0.211 H 336.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CC42B2
RGBrgb(204, 66, 178)
HSLhsl(311, 58%, 53%)
HSVhsv(311, 68%, 80%)
CMYKcmyk(0%, 67.6%, 12.7%, 20%)
CIE-LABlab(51.78, 65.83, -31.14)
CIE-LCHlch(51.78, 72.82, 334.69°)
OKLaboklab(61.2% 0.1929 -0.0847)
OKLCHoklch(61.2% 0.211 336.3)
XYZxyz(34.8864, 19.9512, 44.1244)
Luminance0.1995 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42B2 #42CC5C
analogous
#A142CC #CC42B2 #CC426D
triadic
#CC42B2 #B2CC42 #42B2CC
tetradic
#CC42B2 #CCA142 #42CC5C #426DCC
square
#CC42B2 #CCA142 #42CC5C #426DCC
split-complementary
#CC42B2 #6DCC42 #42CCA1
monochromatic
#741F64 #A42C8E #CC42B2 #D972C6 #E6A2D9

Accessibility & contrast

On white

4.21
#CC42B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#CC42B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42B2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42B2#FFFFFF#000000##000000
##CC42B21.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#7283AF
Tritanopia (blue-blind)
#D64A74
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc42b2;
/* rgb */ color: rgb(204, 66, 178);
/* oklch */ color: oklch(61.2% 0.211 336.3);
Tailwind
colors: {
  custom: {
    50: '#df81c9',
    500: '#cc42b2',
    950: '#000000',
  },
}
SCSS
$custom: #cc42b2;
$custom-light: #df81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42b2",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 311.304,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61202,
    "c": 0.21068,
    "h": 336.3
  },
  "luminance": 0.19948
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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