#CC45B7#CC45B7

#CC45B7 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.7% C 0.210 H 334.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CC45B7
RGBrgb(204, 69, 183)
HSLhsl(309, 57%, 54%)
HSVhsv(309, 66%, 80%)
CMYKcmyk(0%, 66.2%, 10.3%, 20%)
CIE-LABlab(52.41, 65.45, -33.06)
CIE-LCHlch(52.41, 73.33, 333.20°)
OKLaboklab(61.74% 0.1902 -0.0902)
OKLCHoklch(61.74% 0.21 334.6)
XYZxyz(35.5775, 20.5154, 46.8767)
Luminance0.2051 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC45B7 #45CC5A
analogous
#9D45CC #CC45B7 #CC4573
triadic
#CC45B7 #B7CC45 #45B7CC
tetradic
#CC45B7 #CC9D45 #45CC5A #4573CC
square
#CC45B7 #CC9D45 #45CC5A #4573CC
split-complementary
#CC45B7 #73CC45 #45CC9D
monochromatic
#762069 #A62E93 #CC45B7 #D975CA #E6A5DC

Accessibility & contrast

On white

4.12
#CC45B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CC45B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC45B7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC45B7#FFFFFF#000000##000000
##CC45B71.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4470BA
Deuteranopia (green-blind)
#7184B4
Tritanopia (blue-blind)
#D54F78
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cc45b7;
/* rgb */ color: rgb(204, 69, 183);
/* oklch */ color: oklch(61.7% 0.210 334.6);
Tailwind
colors: {
  custom: {
    50: '#df83cd',
    500: '#cc45b7',
    950: '#000000',
  },
}
SCSS
$custom: #cc45b7;
$custom-light: #df83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc45b7",
  "rgb": {
    "r": 204,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 309.333,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61737,
    "c": 0.21049,
    "h": 334.6
  },
  "luminance": 0.20513
}

Semantic roles & 50–950 ramp

primary
#CC45B7
secondary
#99D3A2
accent
#E05F48
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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