#CC40C5#CC40C5

#CC40C5 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 62.0% C 0.227 H 330.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#CC40C5
RGBrgb(204, 64, 197)
HSLhsl(303, 58%, 53%)
HSVhsv(303, 69%, 80%)
CMYKcmyk(0%, 68.6%, 3.4%, 20%)
CIE-LABlab(52.44, 69.47, -41.12)
CIE-LCHlch(52.44, 80.73, 329.37°)
OKLaboklab(61.98% 0.1966 -0.1134)
OKLCHoklch(61.98% 0.227 330)
XYZxyz(36.8131, 20.5381, 54.8378)
Luminance0.2054 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40C5 #40CC47
analogous
#8D40CC #CC40C5 #CC407F
triadic
#CC40C5 #C5CC40 #40C5CC
tetradic
#CC40C5 #CC8D40 #40CC47 #407FCC
square
#CC40C5 #CC8D40 #40CC47 #407FCC
split-complementary
#CC40C5 #7FCC40 #40CC8D
monochromatic
#731F6F #A32C9D #CC40C5 #D970D4 #E6A1E2

Accessibility & contrast

On white

4.11
#CC40C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#CC40C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40C5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40C5#FFFFFF#000000##000000
##CC40C51.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3271C9
Deuteranopia (green-blind)
#6884C1
Tritanopia (blue-blind)
#D3517E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cc40c5;
/* rgb */ color: rgb(204, 64, 197);
/* oklch */ color: oklch(62.0% 0.227 330.0);
Tailwind
colors: {
  custom: {
    50: '#df81d7',
    500: '#cc40c5',
    950: '#000000',
  },
}
SCSS
$custom: #cc40c5;
$custom-light: #df81d7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40c5",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 303,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61976,
    "c": 0.22698,
    "h": 330
  },
  "luminance": 0.20535
}

Semantic roles & 50–950 ramp

primary
#CC40C5
secondary
#95D299
accent
#E14E47
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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