#CC40B5#CC40B5

#CC40B5 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.2% C 0.215 H 335.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CC40B5
RGBrgb(204, 64, 181)
HSLhsl(310, 58%, 53%)
HSVhsv(310, 69%, 80%)
CMYKcmyk(0%, 68.6%, 11.3%, 20%)
CIE-LABlab(51.66, 67.01, -33.08)
CIE-LCHlch(51.66, 74.73, 333.73°)
OKLaboklab(61.16% 0.1954 -0.0902)
OKLCHoklch(61.16% 0.215 335.2)
XYZxyz(35.0761, 19.8434, 45.6899)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B5 #40CC57
analogous
#9D40CC #CC40B5 #CC406F
triadic
#CC40B5 #B5CC40 #40B5CC
tetradic
#CC40B5 #CC9D40 #40CC57 #406FCC
square
#CC40B5 #CC9D40 #40CC57 #406FCC
split-complementary
#CC40B5 #6FCC40 #40CC9D
monochromatic
#731F65 #A32C90 #CC40B5 #D970C8 #E6A1DA

Accessibility & contrast

On white

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

On black

4.97
#CC40B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40B5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40B5#FFFFFF#000000##000000
##CC40B51.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#406EB8
Deuteranopia (green-blind)
#7083B2
Tritanopia (blue-blind)
#D64A75
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc40b5;
/* rgb */ color: rgb(204, 64, 181);
/* oklch */ color: oklch(61.2% 0.215 335.2);
Tailwind
colors: {
  custom: {
    50: '#df80cb',
    500: '#cc40b5',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b5;
$custom-light: #df80cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b5",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 309.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61159,
    "c": 0.21525,
    "h": 335.2
  },
  "luminance": 0.1984
}

Semantic roles & 50–950 ramp

primary
#CC40B5
secondary
#95D29F
accent
#E16047
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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