#CC40B2#CC40B2

#CC40B2 is a mid, highly saturated pink. Relative luminance 0.197; OKLCH L 61.0% C 0.213 H 336.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CC40B2
RGBrgb(204, 64, 178)
HSLhsl(311, 58%, 53%)
HSVhsv(311, 69%, 80%)
CMYKcmyk(0%, 68.6%, 12.7%, 20%)
CIE-LABlab(51.52, 66.56, -31.54)
CIE-LCHlch(51.52, 73.66, 334.64°)
OKLaboklab(61.01% 0.1951 -0.0858)
OKLCHoklch(61.01% 0.213 336.2)
XYZxyz(34.7716, 19.7216, 44.0862)
Luminance0.1972 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B2 #40CC5A
analogous
#A040CC #CC40B2 #CC406C
triadic
#CC40B2 #B2CC40 #40B2CC
tetradic
#CC40B2 #CCA040 #40CC5A #406CCC
square
#CC40B2 #CCA040 #40CC5A #406CCC
split-complementary
#CC40B2 #6CCC40 #40CCA0
monochromatic
#731F63 #A32C8D #CC40B2 #D970C5 #E6A1D9

Accessibility & contrast

On white

4.25
#CC40B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CC40B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40B2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40B2#FFFFFF#000000##000000
##CC40B21.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#7182AF
Tritanopia (blue-blind)
#D64974
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc40b2;
/* rgb */ color: rgb(204, 64, 178);
/* oklch */ color: oklch(61.0% 0.213 336.2);
Tailwind
colors: {
  custom: {
    50: '#df80c9',
    500: '#cc40b2',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b2;
$custom-light: #df80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b2",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 311.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61013,
    "c": 0.21313,
    "h": 336.2
  },
  "luminance": 0.19719
}

Semantic roles & 50–950 ramp

primary
#CC40B2
secondary
#95D2A1
accent
#E16347
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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