#CC40B0#CC40B0

#CC40B0 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.9% C 0.212 H 336.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#CC40B0
RGBrgb(204, 64, 176)
HSLhsl(312, 58%, 53%)
HSVhsv(312, 69%, 80%)
CMYKcmyk(0%, 68.6%, 13.7%, 20%)
CIE-LABlab(51.43, 66.27, -30.52)
CIE-LCHlch(51.43, 72.96, 335.27°)
OKLaboklab(60.92% 0.1948 -0.0829)
OKLCHoklch(60.92% 0.212 336.9)
XYZxyz(34.5723, 19.6418, 43.0363)
Luminance0.1964 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40B0 #40CC5C
analogous
#A240CC #CC40B0 #CC406A
triadic
#CC40B0 #B0CC40 #40B0CC
tetradic
#CC40B0 #CCA240 #40CC5C #406ACC
square
#CC40B0 #CCA240 #40CC5C #406ACC
split-complementary
#CC40B0 #6ACC40 #40CCA2
monochromatic
#731F62 #A32C8B #CC40B0 #D970C4 #E6A1D8

Accessibility & contrast

On white

4.26
#CC40B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CC40B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40B0
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40B0#FFFFFF#000000##000000
##CC40B01.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#446DB3
Deuteranopia (green-blind)
#7282AD
Tritanopia (blue-blind)
#D74873
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc40b0;
/* rgb */ color: rgb(204, 64, 176);
/* oklch */ color: oklch(60.9% 0.212 336.9);
Tailwind
colors: {
  custom: {
    50: '#df80c8',
    500: '#cc40b0',
    950: '#000000',
  },
}
SCSS
$custom: #cc40b0;
$custom-light: #df80c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40b0",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 312,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60917,
    "c": 0.21174,
    "h": 336.9
  },
  "luminance": 0.19639
}

Semantic roles & 50–950 ramp

primary
#CC40B0
secondary
#95D2A2
accent
#E16647
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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