#9B339C#9B339C

#9B339C is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.4% C 0.185 H 327.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9B339C
RGBrgb(155, 51, 156)
HSLhsl(299, 51%, 41%)
HSVhsv(299, 67%, 61%)
CMYKcmyk(0.6%, 67.3%, 0%, 38.8%)
CIE-LABlab(40.80, 56.02, -35.90)
CIE-LCHlch(40.80, 66.54, 327.35°)
OKLaboklab(51.37% 0.1557 -0.0993)
OKLCHoklch(51.37% 0.185 327.5)
XYZxyz(20.7018, 11.7379, 32.6213)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B339C #349C33
analogous
#67339C #9B339C #9C3368
triadic
#9B339C #9C9B33 #339C9B
tetradic
#9B339C #9C6733 #349C33 #33689C
square
#9B339C #9C6733 #349C33 #33689C
split-complementary
#9B339C #689C33 #339C67
monochromatic
#3F1540 #6D246E #9B339C #C249C3 #D277D3

Accessibility & contrast

On white

6.27
#9B339C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9B339C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B339C
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B339C#FFFFFF#000000##FFFFFF
##9B339C1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23589F
Deuteranopia (green-blind)
#4C6599
Tritanopia (blue-blind)
#A04263
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9b339c;
/* rgb */ color: rgb(155, 51, 156);
/* oklch */ color: oklch(51.4% 0.185 327.5);
Tailwind
colors: {
  custom: {
    50: '#bc74b9',
    500: '#9b339c',
    950: '#000000',
  },
}
SCSS
$custom: #9b339c;
$custom-light: #bc74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b339c",
  "rgb": {
    "r": 155,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 299.429,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51366,
    "c": 0.1847,
    "h": 327.5
  },
  "luminance": 0.11737
}

Semantic roles & 50–950 ramp

primary
#9B339C
secondary
#71BB70
accent
#DA4E4F
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9B339C

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

Preview Lab → · Contrast checker → · Palette generator →

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