#CC40C7#CC40C7

#CC40C7 is a light, highly saturated purple. Relative luminance 0.206; OKLCH L 62.1% C 0.229 H 329.4°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#CC40C7
RGBrgb(204, 64, 199)
HSLhsl(302, 58%, 53%)
HSVhsv(302, 69%, 80%)
CMYKcmyk(0%, 68.6%, 2.5%, 20%)
CIE-LABlab(52.54, 69.78, -42.11)
CIE-LCHlch(52.54, 81.51, 328.89°)
OKLaboklab(62.08% 0.1967 -0.1162)
OKLCHoklch(62.08% 0.229 329.4)
XYZxyz(37.0438, 20.6304, 56.0528)
Luminance0.2063 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40C7 #40CC45
analogous
#8B40CC #CC40C7 #CC4081
triadic
#CC40C7 #C7CC40 #40C7CC
tetradic
#CC40C7 #CC8B40 #40CC45 #4081CC
square
#CC40C7 #CC8B40 #40CC45 #4081CC
split-complementary
#CC40C7 #81CC40 #40CC8B
monochromatic
#731F70 #A32C9F #CC40C7 #D970D5 #E6A1E3

Accessibility & contrast

On white

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

On black

5.13
#CC40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40C7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40C7#FFFFFF#000000##000000
##CC40C71.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F71CB
Deuteranopia (green-blind)
#6784C3
Tritanopia (blue-blind)
#D3527F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cc40c7;
/* rgb */ color: rgb(204, 64, 199);
/* oklch */ color: oklch(62.1% 0.229 329.4);
Tailwind
colors: {
  custom: {
    50: '#df81d8',
    500: '#cc40c7',
    950: '#000000',
  },
}
SCSS
$custom: #cc40c7;
$custom-light: #df81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40c7",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 302.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.62083,
    "c": 0.2285,
    "h": 329.4
  },
  "luminance": 0.20628
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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