#CC42B4#CC42B4

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

Color values

HEX#CC42B4
RGBrgb(204, 66, 180)
HSLhsl(310, 58%, 53%)
HSVhsv(310, 68%, 80%)
CMYKcmyk(0%, 67.6%, 11.8%, 20%)
CIE-LABlab(51.87, 66.13, -32.16)
CIE-LCHlch(51.87, 73.53, 334.06°)
OKLaboklab(61.3% 0.1931 -0.0876)
OKLCHoklch(61.3% 0.212 335.6)
XYZxyz(35.0887, 20.0321, 45.1897)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42B4 #42CC5A
analogous
#9F42CC #CC42B4 #CC426F
triadic
#CC42B4 #B4CC42 #42B4CC
tetradic
#CC42B4 #CC9F42 #42CC5A #426FCC
square
#CC42B4 #CC9F42 #42CC5A #426FCC
split-complementary
#CC42B4 #6FCC42 #42CC9F
monochromatic
#741F65 #A42C90 #CC42B4 #D972C7 #E6A2DA

Accessibility & contrast

On white

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

On black

5.01
#CC42B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42B4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42B4#FFFFFF#000000##000000
##CC42B41.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc42b4;
/* rgb */ color: rgb(204, 66, 180);
/* oklch */ color: oklch(61.3% 0.212 335.6);
Tailwind
colors: {
  custom: {
    50: '#df81cb',
    500: '#cc42b4',
    950: '#000000',
  },
}
SCSS
$custom: #cc42b4;
$custom-light: #df81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42b4",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 310.435,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61299,
    "c": 0.21209,
    "h": 335.6
  },
  "luminance": 0.20029
}

Semantic roles & 50–950 ramp

primary
#CC42B4
secondary
#97D3A1
accent
#E16247
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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