#CC40B7#CC40B7

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

Color values

HEX#CC40B7
RGBrgb(204, 64, 183)
HSLhsl(309, 58%, 53%)
HSVhsv(309, 69%, 80%)
CMYKcmyk(0%, 68.6%, 10.3%, 20%)
CIE-LABlab(51.75, 67.30, -34.10)
CIE-LCHlch(51.75, 75.45, 333.13°)
OKLaboklab(61.26% 0.1956 -0.0931)
OKLCHoklch(61.26% 0.217 334.5)
XYZxyz(35.2828, 19.9260, 46.7784)
Luminance0.1992 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B7 #40CC55
analogous
#9B40CC #CC40B7 #CC4071
triadic
#CC40B7 #B7CC40 #40B7CC
tetradic
#CC40B7 #CC9B40 #40CC55 #4071CC
square
#CC40B7 #CC9B40 #40CC55 #4071CC
split-complementary
#CC40B7 #71CC40 #40CC9B
monochromatic
#731F66 #A32C91 #CC40B7 #D970C9 #E6A1DB

Accessibility & contrast

On white

4.21
#CC40B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC40B7#FFFFFF#000000##000000
##CC40B71.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc40b7;
/* rgb */ color: rgb(204, 64, 183);
/* oklch */ color: oklch(61.3% 0.217 334.5);
Tailwind
colors: {
  custom: {
    50: '#df80cd',
    500: '#cc40b7',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b7;
$custom-light: #df80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b7",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 309,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61257,
    "c": 0.21666,
    "h": 334.5
  },
  "luminance": 0.19923
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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