#CC40C1#CC40C1

#CC40C1 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.8% C 0.224 H 331.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#CC40C1
RGBrgb(204, 64, 193)
HSLhsl(305, 58%, 53%)
HSVhsv(305, 69%, 80%)
CMYKcmyk(0%, 68.6%, 5.4%, 20%)
CIE-LABlab(52.24, 68.84, -39.13)
CIE-LCHlch(52.24, 79.18, 330.38°)
OKLaboklab(61.77% 0.1964 -0.1076)
OKLCHoklch(61.77% 0.224 331.3)
XYZxyz(36.3608, 20.3572, 52.4560)
Luminance0.2035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40C1 #40CC4B
analogous
#9140CC #CC40C1 #CC407B
triadic
#CC40C1 #C1CC40 #40C1CC
tetradic
#CC40C1 #CC9140 #40CC4B #407BCC
square
#CC40C1 #CC9140 #40CC4B #407BCC
split-complementary
#CC40C1 #7BCC40 #40CC91
monochromatic
#731F6C #A32C9A #CC40C1 #D970D1 #E6A1E0

Accessibility & contrast

On white

4.14
#CC40C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#CC40C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40C1
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40C1#FFFFFF#000000##000000
##CC40C11.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3670C5
Deuteranopia (green-blind)
#6A84BD
Tritanopia (blue-blind)
#D44F7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cc40c1;
/* rgb */ color: rgb(204, 64, 193);
/* oklch */ color: oklch(61.8% 0.224 331.3);
Tailwind
colors: {
  custom: {
    50: '#df81d4',
    500: '#cc40c1',
    950: '#000000',
  },
}
SCSS
$custom: #cc40c1;
$custom-light: #df81d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40c1",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 304.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61766,
    "c": 0.22398,
    "h": 331.3
  },
  "luminance": 0.20354
}

Semantic roles & 50–950 ramp

primary
#CC40C1
secondary
#95D29A
accent
#E15347
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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