#CC40C2#CC40C2

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

Color values

HEX#CC40C2
RGBrgb(204, 64, 194)
HSLhsl(304, 58%, 53%)
HSVhsv(304, 69%, 80%)
CMYKcmyk(0%, 68.6%, 4.9%, 20%)
CIE-LABlab(52.29, 68.99, -39.63)
CIE-LCHlch(52.29, 79.57, 330.13°)
OKLaboklab(61.82% 0.1965 -0.1091)
OKLCHoklch(61.82% 0.225 331)
XYZxyz(36.4728, 20.4020, 53.0455)
Luminance0.2040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40C2 #40CC4A
analogous
#9040CC #CC40C2 #CC407C
triadic
#CC40C2 #C2CC40 #40C2CC
tetradic
#CC40C2 #CC9040 #40CC4A #407CCC
square
#CC40C2 #CC9040 #40CC4A #407CCC
split-complementary
#CC40C2 #7CCC40 #40CC90
monochromatic
#731F6D #A32C9B #CC40C2 #D970D1 #E6A1E1

Accessibility & contrast

On white

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

On black

5.08
#CC40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40C2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40C2#FFFFFF#000000##000000
##CC40C21.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3570C6
Deuteranopia (green-blind)
#6A84BE
Tritanopia (blue-blind)
#D4507C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cc40c2;
/* rgb */ color: rgb(204, 64, 194);
/* oklch */ color: oklch(61.8% 0.225 331.0);
Tailwind
colors: {
  custom: {
    50: '#df81d5',
    500: '#cc40c2',
    950: '#000000',
  },
}
SCSS
$custom: #cc40c2;
$custom-light: #df81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40c2",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 304.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61818,
    "c": 0.22472,
    "h": 331
  },
  "luminance": 0.20399
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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