#CC28C1#CC28C1

#CC28C1 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 60.0% C 0.247 H 331.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#CC28C1
RGBrgb(204, 40, 193)
HSLhsl(304, 67%, 48%)
HSVhsv(304, 80%, 80%)
CMYKcmyk(0%, 80.4%, 5.4%, 20%)
CIE-LABlab(49.75, 75.96, -43.07)
CIE-LCHlch(49.75, 87.32, 330.45°)
OKLaboklab(59.98% 0.217 -0.1188)
OKLCHoklch(59.98% 0.247 331.3)
XYZxyz(35.2863, 18.2082, 52.0978)
Luminance0.1820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC28C1 #28CC33
analogous
#8528CC #CC28C1 #CC286F
triadic
#CC28C1 #C1CC28 #28C1CC
tetradic
#CC28C1 #CC8528 #28CC33 #286FCC
square
#CC28C1 #CC8528 #28CC33 #286FCC
split-complementary
#CC28C1 #6FCC28 #28CC85
monochromatic
#661460 #991E91 #CC28C1 #DD54D4 #E787E1

Accessibility & contrast

On white

4.52
#CC28C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#CC28C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC28C1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC28C1#FFFFFF#000000##000000
##CC28C11.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1068C5
Deuteranopia (green-blind)
#617EBD
Tritanopia (blue-blind)
#D44076
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc28c1;
/* rgb */ color: rgb(204, 40, 193);
/* oklch */ color: oklch(60.0% 0.247 331.3);
Tailwind
colors: {
  custom: {
    50: '#e077d4',
    500: '#cc28c1',
    950: '#000000',
  },
}
SCSS
$custom: #cc28c1;
$custom-light: #e077d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc28c1",
  "rgb": {
    "r": 204,
    "g": 40,
    "b": 193
  },
  "hsl": {
    "h": 304.024,
    "s": 67.213,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5998,
    "c": 0.24745,
    "h": 331.3
  },
  "luminance": 0.18205
}

Semantic roles & 50–950 ramp

primary
#CC28C1
secondary
#7FD184
accent
#EA493E
background
#FEF7FD
surface
#FDEEFA
border
#D5C9D3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CC28C1

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

Preview Lab → · Contrast checker → · Palette generator →

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