#CC40B4#CC40B4

#CC40B4 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.1% C 0.215 H 335.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CC40B4
RGBrgb(204, 64, 180)
HSLhsl(310, 58%, 53%)
HSVhsv(310, 69%, 80%)
CMYKcmyk(0%, 68.6%, 11.8%, 20%)
CIE-LABlab(51.61, 66.86, -32.57)
CIE-LCHlch(51.61, 74.37, 334.03°)
OKLaboklab(61.11% 0.1953 -0.0888)
OKLCHoklch(61.11% 0.215 335.6)
XYZxyz(34.9739, 19.8025, 45.1515)
Luminance0.1980 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B4 #40CC58
analogous
#9E40CC #CC40B4 #CC406E
triadic
#CC40B4 #B4CC40 #40B4CC
tetradic
#CC40B4 #CC9E40 #40CC58 #406ECC
square
#CC40B4 #CC9E40 #40CC58 #406ECC
split-complementary
#CC40B4 #6ECC40 #40CC9E
monochromatic
#731F64 #A32C8F #CC40B4 #D970C7 #E6A1DA

Accessibility & contrast

On white

4.23
#CC40B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CC40B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40B4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40B4#FFFFFF#000000##000000
##CC40B41.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#416EB7
Deuteranopia (green-blind)
#7083B1
Tritanopia (blue-blind)
#D64A75
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc40b4;
/* rgb */ color: rgb(204, 64, 180);
/* oklch */ color: oklch(61.1% 0.215 335.6);
Tailwind
colors: {
  custom: {
    50: '#df80cb',
    500: '#cc40b4',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b4;
$custom-light: #df80cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b4",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 310.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6111,
    "c": 0.21454,
    "h": 335.6
  },
  "luminance": 0.19799
}

Semantic roles & 50–950 ramp

primary
#CC40B4
secondary
#95D2A0
accent
#E16147
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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