#CC338C#CC338C

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

Color values

HEX#CC338C
RGBrgb(204, 51, 140)
HSLhsl(325, 60%, 50%)
HSVhsv(325, 75%, 80%)
CMYKcmyk(0%, 75%, 31.4%, 20%)
CIE-LABlab(48.39, 65.97, -13.83)
CIE-LCHlch(48.39, 67.41, 348.16°)
OKLaboklab(58.22% 0.2017 -0.0361)
OKLCHoklch(58.22% 0.205 349.8)
XYZxyz(30.8210, 17.1021, 26.4838)
Luminance0.1710 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC338C #33CC73
analogous
#BF33CC #CC338C #CC3340
triadic
#CC338C #8CCC33 #338CCC
tetradic
#CC338C #CCBF33 #33CC73 #3340CC
square
#CC338C #CCBF33 #33CC73 #3340CC
split-complementary
#CC338C #40CC33 #33CCBF
monochromatic
#6A1B49 #9B276A #CC338C #D864A8 #E495C3

Accessibility & contrast

On white

4.75
#CC338C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#CC338C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CC338C
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC338C#FFFFFF#000000##FFFFFF
##CC338C1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C628E
Deuteranopia (green-blind)
#797D89
Tritanopia (blue-blind)
#DB295B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cc338c;
/* rgb */ color: rgb(204, 51, 140);
/* oklch */ color: oklch(58.2% 0.205 349.8);
Tailwind
colors: {
  custom: {
    50: '#e079ad',
    500: '#cc338c',
    950: '#000000',
  },
}
SCSS
$custom: #cc338c;
$custom-light: #e079ad;
$custom-dark: #000000;
JSON
{
  "hex": "#cc338c",
  "rgb": {
    "r": 204,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 325.098,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.58219,
    "c": 0.2049,
    "h": 349.8
  },
  "luminance": 0.17098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC338C

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

Preview Lab → · Contrast checker → · Palette generator →

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