#CC40B9#CC40B9

#CC40B9 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.4% C 0.218 H 333.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CC40B9
RGBrgb(204, 64, 185)
HSLhsl(308, 58%, 53%)
HSVhsv(308, 69%, 80%)
CMYKcmyk(0%, 68.6%, 9.3%, 20%)
CIE-LABlab(51.85, 67.61, -35.11)
CIE-LCHlch(51.85, 76.18, 332.56°)
OKLaboklab(61.36% 0.1958 -0.096)
OKLCHoklch(61.36% 0.218 333.9)
XYZxyz(35.4924, 20.0099, 47.8825)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B9 #40CC53
analogous
#9940CC #CC40B9 #CC4073
triadic
#CC40B9 #B9CC40 #40B9CC
tetradic
#CC40B9 #CC9940 #40CC53 #4073CC
square
#CC40B9 #CC9940 #40CC53 #4073CC
split-complementary
#CC40B9 #73CC40 #40CC99
monochromatic
#731F67 #A32C93 #CC40B9 #D970CB #E6A1DC

Accessibility & contrast

On white

4.20
#CC40B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#CC40B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40B9
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40B9#FFFFFF#000000##000000
##CC40B91.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6FBC
Deuteranopia (green-blind)
#6E83B6
Tritanopia (blue-blind)
#D54C77
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cc40b9;
/* rgb */ color: rgb(204, 64, 185);
/* oklch */ color: oklch(61.4% 0.218 333.9);
Tailwind
colors: {
  custom: {
    50: '#df80ce',
    500: '#cc40b9',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b9;
$custom-light: #df80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b9",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 308.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61357,
    "c": 0.2181,
    "h": 333.9
  },
  "luminance": 0.20007
}

Semantic roles & 50–950 ramp

primary
#CC40B9
secondary
#95D29E
accent
#E15C47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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