#CC51BD#CC51BD

#CC51BD is a light, vivid purple. Relative luminance 0.224; OKLCH L 63.3% C 0.199 H 332.7°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#CC51BD
RGBrgb(204, 81, 189)
HSLhsl(307, 55%, 56%)
HSVhsv(307, 60%, 80%)
CMYKcmyk(0%, 60.3%, 7.4%, 20%)
CIE-LABlab(54.45, 61.53, -33.36)
CIE-LCHlch(54.45, 69.99, 331.53°)
OKLaboklab(63.31% 0.1767 -0.0912)
OKLCHoklch(63.31% 0.199 332.7)
XYZxyz(37.0296, 22.3991, 50.5074)
Luminance0.2240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51BD #51CC60
analogous
#9D51CC #CC51BD #CC517F
triadic
#CC51BD #BDCC51 #51BDCC
tetradic
#CC51BD #CC9D51 #51CC60 #517FCC
square
#CC51BD #CC9D51 #51CC60 #517FCC
split-complementary
#CC51BD #7FCC51 #51CC9D
monochromatic
#7E2573 #AD339E #CC51BD #DA80CF #E8B0E1

Accessibility & contrast

On white

3.83
#CC51BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#CC51BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51BD
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51BD#FFFFFF#000000##000000
##CC51BD1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C0
Deuteranopia (green-blind)
#7589BA
Tritanopia (blue-blind)
#D45B80
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cc51bd;
/* rgb */ color: rgb(204, 81, 189);
/* oklch */ color: oklch(63.3% 0.199 332.7);
Tailwind
colors: {
  custom: {
    50: '#df89d1',
    500: '#cc51bd',
    950: '#000000',
  },
}
SCSS
$custom: #cc51bd;
$custom-light: #df89d1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51bd",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 307.317,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.63308,
    "c": 0.19882,
    "h": 332.7
  },
  "luminance": 0.22396
}

Semantic roles & 50–950 ramp

primary
#CC51BD
secondary
#A3D6A9
accent
#DE5C4A
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160C14
muted
#847D82

Preview Lab

Preview with #CC51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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