#CC40B1#CC40B1

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

Color values

HEX#CC40B1
RGBrgb(204, 64, 177)
HSLhsl(312, 58%, 53%)
HSVhsv(312, 69%, 80%)
CMYKcmyk(0%, 68.6%, 13.2%, 20%)
CIE-LABlab(51.48, 66.42, -31.03)
CIE-LCHlch(51.48, 73.31, 334.96°)
OKLaboklab(60.97% 0.195 -0.0844)
OKLCHoklch(60.97% 0.212 336.6)
XYZxyz(34.6716, 19.6815, 43.5593)
Luminance0.1968 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B1 #40CC5B
analogous
#A140CC #CC40B1 #CC406B
triadic
#CC40B1 #B1CC40 #40B1CC
tetradic
#CC40B1 #CCA140 #40CC5B #406BCC
square
#CC40B1 #CCA140 #40CC5B #406BCC
split-complementary
#CC40B1 #6BCC40 #40CCA1
monochromatic
#731F63 #A32C8C #CC40B1 #D970C5 #E6A1D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC40B1#FFFFFF#000000##000000
##CC40B11.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)
#436DB4
Deuteranopia (green-blind)
#7182AE
Tritanopia (blue-blind)
#D64873
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc40b1;
/* rgb */ color: rgb(204, 64, 177);
/* oklch */ color: oklch(61.0% 0.212 336.6);
Tailwind
colors: {
  custom: {
    50: '#df80c8',
    500: '#cc40b1',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b1;
$custom-light: #df80c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b1",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 311.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60965,
    "c": 0.21243,
    "h": 336.6
  },
  "luminance": 0.19678
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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