#CC338B#CC338B

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

Color values

HEX#CC338B
RGBrgb(204, 51, 139)
HSLhsl(325, 60%, 50%)
HSVhsv(325, 75%, 80%)
CMYKcmyk(0%, 75%, 31.9%, 20%)
CIE-LABlab(48.35, 65.86, -13.28)
CIE-LCHlch(48.35, 67.19, 348.60°)
OKLaboklab(58.18% 0.2014 -0.0346)
OKLCHoklch(58.18% 0.204 350.2)
XYZxyz(30.7476, 17.0727, 26.0972)
Luminance0.1707 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC338B #33CC74
analogous
#C033CC #CC338B #CC333F
triadic
#CC338B #8BCC33 #338BCC
tetradic
#CC338B #CCC033 #33CC74 #333FCC
square
#CC338B #CCC033 #33CC74 #333FCC
split-complementary
#CC338B #3FCC33 #33CCC0
monochromatic
#6A1B48 #9B276A #CC338B #D864A7 #E495C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC338B#FFFFFF#000000##FFFFFF
##CC338B1.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)
#4D618D
Deuteranopia (green-blind)
#797D88
Tritanopia (blue-blind)
#DB285B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc338b;
/* rgb */ color: rgb(204, 51, 139);
/* oklch */ color: oklch(58.2% 0.204 350.2);
Tailwind
colors: {
  custom: {
    50: '#e079ad',
    500: '#cc338b',
    950: '#000000',
  },
}
SCSS
$custom: #cc338b;
$custom-light: #e079ad;
$custom-dark: #000000;
JSON
{
  "hex": "#cc338b",
  "rgb": {
    "r": 204,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 325.49,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.5818,
    "c": 0.20439,
    "h": 350.2
  },
  "luminance": 0.17069
}

Semantic roles & 50–950 ramp

primary
#CC338B
secondary
#8BD0A8
accent
#E38845
background
#FEF7FA
surface
#FDEEF4
border
#D5C9CE
text
#160A10
muted
#847C7F

Preview Lab

Preview with #CC338B

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

Preview Lab → · Contrast checker → · Palette generator →

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