#CC40C6#CC40C6

#CC40C6 is a light, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.228 H 329.7°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#CC40C6
RGBrgb(204, 64, 198)
HSLhsl(303, 58%, 53%)
HSVhsv(303, 69%, 80%)
CMYKcmyk(0%, 68.6%, 2.9%, 20%)
CIE-LABlab(52.49, 69.62, -41.62)
CIE-LCHlch(52.49, 81.12, 329.13°)
OKLaboklab(62.03% 0.1967 -0.1148)
OKLCHoklch(62.03% 0.228 329.7)
XYZxyz(36.9280, 20.5841, 55.4433)
Luminance0.2058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40C6 #40CC46
analogous
#8C40CC #CC40C6 #CC4080
triadic
#CC40C6 #C6CC40 #40C6CC
tetradic
#CC40C6 #CC8C40 #40CC46 #4080CC
square
#CC40C6 #CC8C40 #40CC46 #4080CC
split-complementary
#CC40C6 #80CC40 #40CC8C
monochromatic
#731F6F #A32C9E #CC40C6 #D970D4 #E6A1E3

Accessibility & contrast

On white

4.10
#CC40C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#CC40C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40C6
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40C6#FFFFFF#000000##000000
##CC40C61.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3171CA
Deuteranopia (green-blind)
#6884C2
Tritanopia (blue-blind)
#D3527E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cc40c6;
/* rgb */ color: rgb(204, 64, 198);
/* oklch */ color: oklch(62.0% 0.228 329.7);
Tailwind
colors: {
  custom: {
    50: '#df81d8',
    500: '#cc40c6',
    950: '#000000',
  },
}
SCSS
$custom: #cc40c6;
$custom-light: #df81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40c6",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 302.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6203,
    "c": 0.22774,
    "h": 329.7
  },
  "luminance": 0.20581
}

Semantic roles & 50–950 ramp

primary
#CC40C6
secondary
#95D298
accent
#E14D47
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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