#CC40B3#CC40B3

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

Color values

HEX#CC40B3
RGBrgb(204, 64, 179)
HSLhsl(311, 58%, 53%)
HSVhsv(311, 69%, 80%)
CMYKcmyk(0%, 68.6%, 12.3%, 20%)
CIE-LABlab(51.57, 66.71, -32.06)
CIE-LCHlch(51.57, 74.01, 334.33°)
OKLaboklab(61.06% 0.1952 -0.0873)
OKLCHoklch(61.06% 0.214 335.9)
XYZxyz(34.8724, 19.7619, 44.6169)
Luminance0.1976 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B3 #40CC59
analogous
#9F40CC #CC40B3 #CC406D
triadic
#CC40B3 #B3CC40 #40B3CC
tetradic
#CC40B3 #CC9F40 #40CC59 #406DCC
square
#CC40B3 #CC9F40 #40CC59 #406DCC
split-complementary
#CC40B3 #6DCC40 #40CC9F
monochromatic
#731F64 #A32C8E #CC40B3 #D970C6 #E6A1D9

Accessibility & contrast

On white

4.24
#CC40B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#CC40B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40B3
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40B3#FFFFFF#000000##000000
##CC40B31.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#416DB6
Deuteranopia (green-blind)
#7082B0
Tritanopia (blue-blind)
#D64974
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc40b3;
/* rgb */ color: rgb(204, 64, 179);
/* oklch */ color: oklch(61.1% 0.214 335.9);
Tailwind
colors: {
  custom: {
    50: '#df80ca',
    500: '#cc40b3',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b3;
$custom-light: #df80ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b3",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 310.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61061,
    "c": 0.21383,
    "h": 335.9
  },
  "luminance": 0.19759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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