#CC5198#CC5198

#CC5198 is a mid, vivid pink. Relative luminance 0.210; OKLCH L 61.7% C 0.173 H 347.7°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#CC5198
RGBrgb(204, 81, 152)
HSLhsl(325, 55%, 56%)
HSVhsv(325, 60%, 80%)
CMYKcmyk(0%, 60.3%, 25.5%, 20%)
CIE-LABlab(52.94, 56.07, -14.09)
CIE-LCHlch(52.94, 57.82, 345.90°)
OKLaboklab(61.71% 0.1694 -0.037)
OKLCHoklch(61.71% 0.173 347.7)
XYZxyz(33.5130, 20.9925, 31.9867)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5198 #51CC85
analogous
#C351CC #CC5198 #CC515A
triadic
#CC5198 #98CC51 #5198CC
tetradic
#CC5198 #CCC351 #51CC85 #515ACC
square
#CC5198 #CCC351 #51CC85 #515ACC
split-complementary
#CC5198 #5ACC51 #51CCC3
monochromatic
#7E2558 #AD3379 #CC5198 #DA80B4 #E8B0D0

Accessibility & contrast

On white

4.04
#CC5198 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#CC5198 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5198
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5198#FFFFFF#000000##000000
##CC51981.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F719A
Deuteranopia (green-blind)
#818695
Tritanopia (blue-blind)
#D94E6E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cc5198;
/* rgb */ color: rgb(204, 81, 152);
/* oklch */ color: oklch(61.7% 0.173 347.7);
Tailwind
colors: {
  custom: {
    50: '#df88b6',
    500: '#cc5198',
    950: '#000000',
  },
}
SCSS
$custom: #cc5198;
$custom-light: #df88b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5198",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 152
  },
  "hsl": {
    "h": 325.366,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61707,
    "c": 0.17337,
    "h": 347.7
  },
  "luminance": 0.20989
}

Semantic roles & 50–950 ramp

primary
#CC5198
secondary
#A3D6B8
accent
#DE884A
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C11
muted
#847D80

Preview Lab

Preview with #CC5198

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

Preview Lab → · Contrast checker → · Palette generator →

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