#CC40C3#CC40C3

#CC40C3 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.225 H 330.7°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#CC40C3
RGBrgb(204, 64, 195)
HSLhsl(304, 58%, 53%)
HSVhsv(304, 69%, 80%)
CMYKcmyk(0%, 68.6%, 4.4%, 20%)
CIE-LABlab(52.34, 69.15, -40.13)
CIE-LCHlch(52.34, 79.95, 329.87°)
OKLaboklab(61.87% 0.1965 -0.1105)
OKLCHoklch(61.87% 0.225 330.7)
XYZxyz(36.5854, 20.4471, 53.6389)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40C3 #40CC49
analogous
#8F40CC #CC40C3 #CC407D
triadic
#CC40C3 #C3CC40 #40C3CC
tetradic
#CC40C3 #CC8F40 #40CC49 #407DCC
square
#CC40C3 #CC8F40 #40CC49 #407DCC
split-complementary
#CC40C3 #7DCC40 #40CC8F
monochromatic
#731F6E #A32C9C #CC40C3 #D970D2 #E6A1E1

Accessibility & contrast

On white

4.13
#CC40C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#CC40C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40C3
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40C3#FFFFFF#000000##000000
##CC40C31.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3471C7
Deuteranopia (green-blind)
#6984BF
Tritanopia (blue-blind)
#D4507D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cc40c3;
/* rgb */ color: rgb(204, 64, 195);
/* oklch */ color: oklch(61.9% 0.225 330.7);
Tailwind
colors: {
  custom: {
    50: '#df81d5',
    500: '#cc40c3',
    950: '#000000',
  },
}
SCSS
$custom: #cc40c3;
$custom-light: #df81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40c3",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 303.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6187,
    "c": 0.22547,
    "h": 330.7
  },
  "luminance": 0.20444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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