#CC40B6#CC40B6

#CC40B6 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.2% C 0.216 H 334.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#CC40B6
RGBrgb(204, 64, 182)
HSLhsl(309, 58%, 53%)
HSVhsv(309, 69%, 80%)
CMYKcmyk(0%, 68.6%, 10.8%, 20%)
CIE-LABlab(51.71, 67.15, -33.59)
CIE-LCHlch(51.71, 75.09, 333.43°)
OKLaboklab(61.21% 0.1955 -0.0917)
OKLCHoklch(61.21% 0.216 334.9)
XYZxyz(35.1791, 19.8845, 46.2322)
Luminance0.1988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B6 #40CC56
analogous
#9C40CC #CC40B6 #CC4070
triadic
#CC40B6 #B6CC40 #40B6CC
tetradic
#CC40B6 #CC9C40 #40CC56 #4070CC
square
#CC40B6 #CC9C40 #40CC56 #4070CC
split-complementary
#CC40B6 #70CC40 #40CC9C
monochromatic
#731F66 #A32C90 #CC40B6 #D970C8 #E6A1DB

Accessibility & contrast

On white

4.22
#CC40B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#CC40B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40B6
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40B6#FFFFFF#000000##000000
##CC40B61.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6EB9
Deuteranopia (green-blind)
#6F83B3
Tritanopia (blue-blind)
#D64B76
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc40b6;
/* rgb */ color: rgb(204, 64, 182);
/* oklch */ color: oklch(61.2% 0.216 334.9);
Tailwind
colors: {
  custom: {
    50: '#df80cc',
    500: '#cc40b6',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b6;
$custom-light: #df80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b6",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 309.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61208,
    "c": 0.21595,
    "h": 334.9
  },
  "luminance": 0.19882
}

Semantic roles & 50–950 ramp

primary
#CC40B6
secondary
#95D29F
accent
#E15F47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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