#CC5298#CC5298

#CC5298 is a mid, vivid pink. Relative luminance 0.211; OKLCH L 61.8% C 0.172 H 347.8°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#CC5298
RGBrgb(204, 82, 152)
HSLhsl(326, 54%, 56%)
HSVhsv(326, 60%, 80%)
CMYKcmyk(0%, 59.8%, 25.5%, 20%)
CIE-LABlab(53.10, 55.63, -13.84)
CIE-LCHlch(53.10, 57.33, 346.03°)
OKLaboklab(61.83% 0.168 -0.0364)
OKLCHoklch(61.83% 0.172 347.8)
XYZxyz(33.5879, 21.1422, 32.0116)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5298 #52CC86
analogous
#C352CC #CC5298 #CC525B
triadic
#CC5298 #98CC52 #5298CC
tetradic
#CC5298 #CCC352 #52CC86 #525BCC
square
#CC5298 #CCC352 #52CC86 #525BCC
split-complementary
#CC5298 #5BCC52 #52CCC3
monochromatic
#7E2558 #AE3379 #CC5298 #DA81B4 #E8B1D0

Accessibility & contrast

On white

4.02
#CC5298 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#CC5298 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5298
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5298#FFFFFF#000000##000000
##CC52981.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#60719A
Deuteranopia (green-blind)
#828795
Tritanopia (blue-blind)
#D94F6E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cc5298;
/* rgb */ color: rgb(204, 82, 152);
/* oklch */ color: oklch(61.8% 0.172 347.8);
Tailwind
colors: {
  custom: {
    50: '#df89b6',
    500: '#cc5298',
    950: '#000000',
  },
}
SCSS
$custom: #cc5298;
$custom-light: #df89b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5298",
  "rgb": {
    "r": 204,
    "g": 82,
    "b": 152
  },
  "hsl": {
    "h": 325.574,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61828,
    "c": 0.1719,
    "h": 347.8
  },
  "luminance": 0.21139
}

Semantic roles & 50–950 ramp

primary
#CC5298
secondary
#A4D6B9
accent
#DE894A
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C11
muted
#847D80

Preview Lab

Preview with #CC5298

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

Preview Lab → · Contrast checker → · Palette generator →

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