#CC398A#CC398A

#CC398A is a mid, vivid pink. Relative luminance 0.176; OKLCH L 58.7% C 0.197 H 351.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#CC398A
RGBrgb(204, 57, 138)
HSLhsl(327, 59%, 51%)
HSVhsv(327, 72%, 80%)
CMYKcmyk(0%, 72.1%, 32.4%, 20%)
CIE-LABlab(49.01, 63.79, -11.69)
CIE-LCHlch(49.01, 64.85, 349.62°)
OKLaboklab(58.65% 0.195 -0.0303)
OKLCHoklch(58.65% 0.197 351.2)
XYZxyz(30.9541, 17.6022, 25.8073)
Luminance0.1760 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC398A #39CC7B
analogous
#C439CC #CC398A #CC3940
triadic
#CC398A #8ACC39 #398ACC
tetradic
#CC398A #CCC439 #39CC7B #3940CC
square
#CC398A #CCC439 #39CC7B #3940CC
split-complementary
#CC398A #40CC39 #39CCC4
monochromatic
#6E1C49 #9F296A #CC398A #D96AA7 #E59AC4

Accessibility & contrast

On white

4.65
#CC398A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#CC398A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CC398A
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC398A#FFFFFF#000000##FFFFFF
##CC398A1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51648C
Deuteranopia (green-blind)
#7B7E87
Tritanopia (blue-blind)
#DB2F5D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #cc398a;
/* rgb */ color: rgb(204, 57, 138);
/* oklch */ color: oklch(58.7% 0.197 351.2);
Tailwind
colors: {
  custom: {
    50: '#e07cac',
    500: '#cc398a',
    950: '#000000',
  },
}
SCSS
$custom: #cc398a;
$custom-light: #e07cac;
$custom-dark: #000000;
JSON
{
  "hex": "#cc398a",
  "rgb": {
    "r": 204,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 326.939,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5865,
    "c": 0.19738,
    "h": 351.2
  },
  "luminance": 0.17599
}

Semantic roles & 50–950 ramp

primary
#CC398A
secondary
#90D1AD
accent
#E28C46
background
#FEF8FA
surface
#FDEFF4
border
#D5CACE
text
#160A10
muted
#847C7F

Preview Lab

Preview with #CC398A

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

Preview Lab → · Contrast checker → · Palette generator →

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