#9C338D#9C338D

#9C338D is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.7% C 0.173 H 334.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9C338D
RGBrgb(156, 51, 141)
HSLhsl(309, 51%, 41%)
HSVhsv(309, 67%, 61%)
CMYKcmyk(0%, 67.3%, 9.6%, 38.8%)
CIE-LABlab(40.18, 53.75, -27.77)
CIE-LCHlch(40.18, 60.50, 332.68°)
OKLaboklab(50.7% 0.1557 -0.0759)
OKLCHoklch(50.7% 0.173 334)
XYZxyz(19.7020, 11.3603, 26.3492)
Luminance0.1136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C338D #339C42
analogous
#76339C #9C338D #9C3359
triadic
#9C338D #8D9C33 #338D9C
tetradic
#9C338D #9C7633 #339C42 #33599C
square
#9C338D #9C7633 #339C42 #33599C
split-complementary
#9C338D #599C33 #339C76
monochromatic
#40153A #6E2463 #9C338D #C349B2 #D377C5

Accessibility & contrast

On white

6.42
#9C338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9C338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C338D
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C338D#FFFFFF#000000##FFFFFF
##9C338D1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#55648A
Tritanopia (blue-blind)
#A33B5B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9c338d;
/* rgb */ color: rgb(156, 51, 141);
/* oklch */ color: oklch(50.7% 0.173 334.0);
Tailwind
colors: {
  custom: {
    50: '#bc73ae',
    500: '#9c338d',
    950: '#000000',
  },
}
SCSS
$custom: #9c338d;
$custom-light: #bc73ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9c338d",
  "rgb": {
    "r": 156,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 308.571,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.507,
    "c": 0.17319,
    "h": 334
  },
  "luminance": 0.11359
}

Semantic roles & 50–950 ramp

primary
#9C338D
secondary
#70BB7B
accent
#DA624E
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9C338D

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

Preview Lab → · Contrast checker → · Palette generator →

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