#9C338A#9C338A

#9C338A is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.5% C 0.171 H 335.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9C338A
RGBrgb(156, 51, 138)
HSLhsl(310, 51%, 41%)
HSVhsv(310, 67%, 61%)
CMYKcmyk(0%, 67.3%, 11.5%, 38.8%)
CIE-LABlab(40.04, 53.27, -26.16)
CIE-LCHlch(40.04, 59.35, 333.84°)
OKLaboklab(50.55% 0.1553 -0.0713)
OKLCHoklch(50.55% 0.171 335.3)
XYZxyz(19.4818, 11.2722, 25.1895)
Luminance0.1127 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C338A #339C45
analogous
#79339C #9C338A #9C3355
triadic
#9C338A #8A9C33 #338A9C
tetradic
#9C338A #9C7933 #339C45 #33559C
square
#9C338A #9C7933 #339C45 #33559C
split-complementary
#9C338A #559C33 #339C79
monochromatic
#401538 #6E2461 #9C338A #C349AE #D377C3

Accessibility & contrast

On white

6.45
#9C338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9C338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C338A
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C338A#FFFFFF#000000##FFFFFF
##9C338A1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548D
Deuteranopia (green-blind)
#566487
Tritanopia (blue-blind)
#A43A5A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9c338a;
/* rgb */ color: rgb(156, 51, 138);
/* oklch */ color: oklch(50.5% 0.171 335.3);
Tailwind
colors: {
  custom: {
    50: '#bc73ac',
    500: '#9c338a',
    950: '#000000',
  },
}
SCSS
$custom: #9c338a;
$custom-light: #bc73ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9c338a",
  "rgb": {
    "r": 156,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 310.286,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50547,
    "c": 0.1709,
    "h": 335.3
  },
  "luminance": 0.11271
}

Semantic roles & 50–950 ramp

primary
#9C338A
secondary
#70BB7D
accent
#DA664E
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9C338A

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

Preview Lab → · Contrast checker → · Palette generator →

#9C338A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva