#CC338A#CC338A

#CC338A is a mid, highly saturated pink. Relative luminance 0.170; OKLCH L 58.1% C 0.204 H 350.7°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#CC338A
RGBrgb(204, 51, 138)
HSLhsl(326, 60%, 50%)
HSVhsv(326, 75%, 80%)
CMYKcmyk(0%, 75%, 32.4%, 20%)
CIE-LABlab(48.31, 65.75, -12.74)
CIE-LCHlch(48.31, 66.97, 349.04°)
OKLaboklab(58.14% 0.2012 -0.0331)
OKLCHoklch(58.14% 0.204 350.7)
XYZxyz(30.6748, 17.0436, 25.7142)
Luminance0.1704 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC338A #33CC75
analogous
#C133CC #CC338A #CC333E
triadic
#CC338A #8ACC33 #338ACC
tetradic
#CC338A #CCC133 #33CC75 #333ECC
square
#CC338A #CCC133 #33CC75 #333ECC
split-complementary
#CC338A #3ECC33 #33CCC1
monochromatic
#6A1B48 #9B2769 #CC338A #D864A6 #E495C2

Accessibility & contrast

On white

4.76
#CC338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#CC338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC338A
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC338A#FFFFFF#000000##FFFFFF
##CC338A1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D618C
Deuteranopia (green-blind)
#797D87
Tritanopia (blue-blind)
#DB285A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc338a;
/* rgb */ color: rgb(204, 51, 138);
/* oklch */ color: oklch(58.1% 0.204 350.7);
Tailwind
colors: {
  custom: {
    50: '#e079ac',
    500: '#cc338a',
    950: '#000000',
  },
}
SCSS
$custom: #cc338a;
$custom-light: #e079ac;
$custom-dark: #000000;
JSON
{
  "hex": "#cc338a",
  "rgb": {
    "r": 204,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 325.882,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.58142,
    "c": 0.20391,
    "h": 350.7
  },
  "luminance": 0.1704
}

Semantic roles & 50–950 ramp

primary
#CC338A
secondary
#8BD0A9
accent
#E38945
background
#FEF7FA
surface
#FDEEF4
border
#D5C9CE
text
#160A10
muted
#847C7F

Preview Lab

Preview with #CC338A

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

Preview Lab → · Contrast checker → · Palette generator →

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