#CC398C#CC398C

#CC398C is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.7% C 0.198 H 350.3°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#CC398C
RGBrgb(204, 57, 140)
HSLhsl(326, 59%, 51%)
HSVhsv(326, 72%, 80%)
CMYKcmyk(0%, 72.1%, 31.4%, 20%)
CIE-LABlab(49.08, 64.02, -12.78)
CIE-LCHlch(49.08, 65.28, 348.71°)
OKLaboklab(58.73% 0.1956 -0.0333)
OKLCHoklch(58.73% 0.198 350.3)
XYZxyz(31.1003, 17.6606, 26.5769)
Luminance0.1766 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC398C #39CC79
analogous
#C239CC #CC398C #CC3942
triadic
#CC398C #8CCC39 #398CCC
tetradic
#CC398C #CCC239 #39CC79 #3942CC
square
#CC398C #CCC239 #39CC79 #3942CC
split-complementary
#CC398C #42CC39 #39CCC2
monochromatic
#6E1C4B #9F296C #CC398C #D96AA8 #E59AC5

Accessibility & contrast

On white

4.63
#CC398C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#CC398C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CC398C
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC398C#FFFFFF#000000##FFFFFF
##CC398C1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51648E
Deuteranopia (green-blind)
#7B7E89
Tritanopia (blue-blind)
#DB305E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #cc398c;
/* rgb */ color: rgb(204, 57, 140);
/* oklch */ color: oklch(58.7% 0.198 350.3);
Tailwind
colors: {
  custom: {
    50: '#e07cad',
    500: '#cc398c',
    950: '#000000',
  },
}
SCSS
$custom: #cc398c;
$custom-light: #e07cad;
$custom-dark: #000000;
JSON
{
  "hex": "#cc398c",
  "rgb": {
    "r": 204,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 326.122,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58726,
    "c": 0.19836,
    "h": 350.3
  },
  "luminance": 0.17657
}

Semantic roles & 50–950 ramp

primary
#CC398C
secondary
#90D1AC
accent
#E28A46
background
#FEF8FA
surface
#FDEFF4
border
#D5CACE
text
#160A10
muted
#847C7F

Preview Lab

Preview with #CC398C

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

Preview Lab → · Contrast checker → · Palette generator →

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