#CC27BD#CC27BD

#CC27BD is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.7% C 0.246 H 332.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#CC27BD
RGBrgb(204, 39, 189)
HSLhsl(305, 68%, 48%)
HSVhsv(305, 81%, 80%)
CMYKcmyk(0%, 80.9%, 7.4%, 20%)
CIE-LABlab(49.45, 75.61, -41.21)
CIE-LCHlch(49.45, 86.11, 331.41°)
OKLaboklab(59.7% 0.2177 -0.1135)
OKLCHoklch(59.7% 0.246 332.5)
XYZxyz(34.8128, 17.9656, 49.7685)
Luminance0.1796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC27BD #27CC36
analogous
#8927CC #CC27BD #CC276A
triadic
#CC27BD #BDCC27 #27BDCC
tetradic
#CC27BD #CC8927 #27CC36 #276ACC
square
#CC27BD #CC8927 #27CC36 #276ACC
split-complementary
#CC27BD #6ACC27 #27CC89
monochromatic
#65135E #991D8D #CC27BD #DE52D1 #E886DF

Accessibility & contrast

On white

4.57
#CC27BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#CC27BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC27BD
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC27BD#FFFFFF#000000##000000
##CC27BD1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1867C1
Deuteranopia (green-blind)
#627EB9
Tritanopia (blue-blind)
#D53D73
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc27bd;
/* rgb */ color: rgb(204, 39, 189);
/* oklch */ color: oklch(59.7% 0.246 332.5);
Tailwind
colors: {
  custom: {
    50: '#e077d1',
    500: '#cc27bd',
    950: '#000000',
  },
}
SCSS
$custom: #cc27bd;
$custom-light: #e077d1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc27bd",
  "rgb": {
    "r": 204,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 305.455,
    "s": 67.901,
    "l": 47.647
  },
  "oklch": {
    "l": 0.59703,
    "c": 0.24551,
    "h": 332.5
  },
  "luminance": 0.17963
}

Semantic roles & 50–950 ramp

primary
#CC27BD
secondary
#7ED185
accent
#EB4D3D
background
#FEF7FC
surface
#FDEEF9
border
#D5C9D2
text
#160A14
muted
#847C82

Preview Lab

Preview with #CC27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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