#9C338E#9C338E

#9C338E is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.8% C 0.174 H 333.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9C338E
RGBrgb(156, 51, 142)
HSLhsl(308, 51%, 41%)
HSVhsv(308, 67%, 61%)
CMYKcmyk(0%, 67.3%, 9%, 38.8%)
CIE-LABlab(40.23, 53.91, -28.30)
CIE-LCHlch(40.23, 60.89, 332.30°)
OKLaboklab(50.75% 0.1558 -0.0774)
OKLCHoklch(50.75% 0.174 333.6)
XYZxyz(19.7767, 11.3902, 26.7429)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C338E #339C41
analogous
#75339C #9C338E #9C3359
triadic
#9C338E #8E9C33 #338E9C
tetradic
#9C338E #9C7533 #339C41 #33599C
square
#9C338E #9C7533 #339C41 #33599C
split-complementary
#9C338E #599C33 #339C75
monochromatic
#40153A #6E2464 #9C338E #C349B3 #D377C6

Accessibility & contrast

On white

6.41
#9C338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9C338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C338E
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C338E#FFFFFF#000000##FFFFFF
##9C338E1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305591
Deuteranopia (green-blind)
#54648B
Tritanopia (blue-blind)
#A33C5C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9c338e;
/* rgb */ color: rgb(156, 51, 142);
/* oklch */ color: oklch(50.8% 0.174 333.6);
Tailwind
colors: {
  custom: {
    50: '#bc73af',
    500: '#9c338e',
    950: '#000000',
  },
}
SCSS
$custom: #9c338e;
$custom-light: #bc73af;
$custom-dark: #000000;
JSON
{
  "hex": "#9c338e",
  "rgb": {
    "r": 156,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 308,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50752,
    "c": 0.17398,
    "h": 333.6
  },
  "luminance": 0.11389
}

Semantic roles & 50–950 ramp

primary
#9C338E
secondary
#70BB7A
accent
#DA604E
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9C338E

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

Preview Lab → · Contrast checker → · Palette generator →

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