#CC40C9#CC40C9

#CC40C9 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.2% C 0.230 H 328.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#CC40C9
RGBrgb(204, 64, 201)
HSLhsl(301, 58%, 53%)
HSVhsv(301, 69%, 80%)
CMYKcmyk(0%, 68.6%, 1.5%, 20%)
CIE-LABlab(52.65, 70.11, -43.10)
CIE-LCHlch(52.65, 82.29, 328.42°)
OKLaboklab(62.19% 0.1968 -0.1191)
OKLCHoklch(62.19% 0.23 328.8)
XYZxyz(37.2775, 20.7239, 57.2837)
Luminance0.2072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40C9 #40CC43
analogous
#8940CC #CC40C9 #CC4083
triadic
#CC40C9 #C9CC40 #40C9CC
tetradic
#CC40C9 #CC8940 #40CC43 #4083CC
square
#CC40C9 #CC8940 #40CC43 #4083CC
split-complementary
#CC40C9 #83CC40 #40CC89
monochromatic
#731F71 #A32CA1 #CC40C9 #D970D7 #E6A1E4

Accessibility & contrast

On white

4.08
#CC40C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#CC40C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40C9
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40C9#FFFFFF#000000##000000
##CC40C91.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D72CD
Deuteranopia (green-blind)
#6684C5
Tritanopia (blue-blind)
#D35380
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cc40c9;
/* rgb */ color: rgb(204, 64, 201);
/* oklch */ color: oklch(62.2% 0.230 328.8);
Tailwind
colors: {
  custom: {
    50: '#df81da',
    500: '#cc40c9',
    950: '#000000',
  },
}
SCSS
$custom: #cc40c9;
$custom-light: #df81da;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40c9",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 301.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.62191,
    "c": 0.23002,
    "h": 328.8
  },
  "luminance": 0.20721
}

Semantic roles & 50–950 ramp

primary
#CC40C9
secondary
#95D297
accent
#E14A47
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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