#CC338E#CC338E

#CC338E is a mid, highly saturated pink. Relative luminance 0.172; OKLCH L 58.3% C 0.206 H 349.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#CC338E
RGBrgb(204, 51, 142)
HSLhsl(324, 60%, 50%)
HSVhsv(324, 75%, 80%)
CMYKcmyk(0%, 75%, 30.4%, 20%)
CIE-LABlab(48.46, 66.20, -14.92)
CIE-LCHlch(48.46, 67.86, 347.30°)
OKLaboklab(58.3% 0.2022 -0.0391)
OKLCHoklch(58.3% 0.206 349.1)
XYZxyz(30.9698, 17.1616, 27.2675)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC338E #33CC71
analogous
#BE33CC #CC338E #CC3341
triadic
#CC338E #8ECC33 #338ECC
tetradic
#CC338E #CCBE33 #33CC71 #3341CC
square
#CC338E #CCBE33 #33CC71 #3341CC
split-complementary
#CC338E #41CC33 #33CCBE
monochromatic
#6A1B4A #9B276C #CC338E #D864A9 #E495C4

Accessibility & contrast

On white

4.74
#CC338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#CC338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC338E
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC338E#FFFFFF#000000##FFFFFF
##CC338E1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6290
Deuteranopia (green-blind)
#787D8B
Tritanopia (blue-blind)
#DB2A5C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc338e;
/* rgb */ color: rgb(204, 51, 142);
/* oklch */ color: oklch(58.3% 0.206 349.1);
Tailwind
colors: {
  custom: {
    50: '#e079af',
    500: '#cc338e',
    950: '#000000',
  },
}
SCSS
$custom: #cc338e;
$custom-light: #e079af;
$custom-dark: #000000;
JSON
{
  "hex": "#cc338e",
  "rgb": {
    "r": 204,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 324.314,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.58298,
    "c": 0.20591,
    "h": 349.1
  },
  "luminance": 0.17158
}

Semantic roles & 50–950 ramp

primary
#CC338E
secondary
#8BD0A7
accent
#E38545
background
#FEF7FA
surface
#FDEEF4
border
#D5C9CE
text
#160A10
muted
#847C7F

Preview Lab

Preview with #CC338E

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

Preview Lab → · Contrast checker → · Palette generator →

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