#CC45B2#CC45B2

#CC45B2 is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.5% C 0.207 H 336.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CC45B2
RGBrgb(204, 69, 178)
HSLhsl(312, 57%, 54%)
HSVhsv(312, 66%, 80%)
CMYKcmyk(0%, 66.2%, 12.7%, 20%)
CIE-LABlab(52.19, 64.70, -30.51)
CIE-LCHlch(52.19, 71.53, 334.76°)
OKLaboklab(61.5% 0.1895 -0.0829)
OKLCHoklch(61.5% 0.207 336.4)
XYZxyz(35.0663, 20.3110, 44.1844)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC45B2 #45CC5F
analogous
#A345CC #CC45B2 #CC456E
triadic
#CC45B2 #B2CC45 #45B2CC
tetradic
#CC45B2 #CCA345 #45CC5F #456ECC
square
#CC45B2 #CCA345 #45CC5F #456ECC
split-complementary
#CC45B2 #6ECC45 #45CCA3
monochromatic
#762066 #A62E8F #CC45B2 #D975C6 #E6A5DA

Accessibility & contrast

On white

4.15
#CC45B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CC45B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC45B2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC45B2#FFFFFF#000000##000000
##CC45B21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#476FB5
Deuteranopia (green-blind)
#7384AF
Tritanopia (blue-blind)
#D64D75
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cc45b2;
/* rgb */ color: rgb(204, 69, 178);
/* oklch */ color: oklch(61.5% 0.207 336.4);
Tailwind
colors: {
  custom: {
    50: '#df83c9',
    500: '#cc45b2',
    950: '#000000',
  },
}
SCSS
$custom: #cc45b2;
$custom-light: #df83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc45b2",
  "rgb": {
    "r": 204,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 311.556,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61497,
    "c": 0.20688,
    "h": 336.4
  },
  "luminance": 0.20308
}

Semantic roles & 50–950 ramp

primary
#CC45B2
secondary
#99D3A5
accent
#E06548
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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