#9B339D#9B339D

#9B339D is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.4% C 0.186 H 327.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9B339D
RGBrgb(155, 51, 157)
HSLhsl(299, 51%, 41%)
HSVhsv(299, 68%, 62%)
CMYKcmyk(1.3%, 67.5%, 0%, 38.4%)
CIE-LABlab(40.85, 56.20, -36.42)
CIE-LCHlch(40.85, 66.96, 327.06°)
OKLaboklab(51.42% 0.1558 -0.1008)
OKLCHoklch(51.42% 0.186 327.1)
XYZxyz(20.7869, 11.7719, 33.0691)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B339D #359D33
analogous
#66339D #9B339D #9D336A
triadic
#9B339D #9D9B33 #339D9B
tetradic
#9B339D #9D6633 #359D33 #336A9D
square
#9B339D #9D6633 #359D33 #336A9D
split-complementary
#9B339D #6A9D33 #339D66
monochromatic
#401541 #6D246F #9B339D #C249C4 #D177D3

Accessibility & contrast

On white

6.26
#9B339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9B339D
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B339D#FFFFFF#000000##FFFFFF
##9B339D1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A0
Deuteranopia (green-blind)
#4C659A
Tritanopia (blue-blind)
#9F4264
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9b339d;
/* rgb */ color: rgb(155, 51, 157);
/* oklch */ color: oklch(51.4% 0.186 327.1);
Tailwind
colors: {
  custom: {
    50: '#bc74ba',
    500: '#9b339d',
    950: '#000000',
  },
}
SCSS
$custom: #9b339d;
$custom-light: #bc74ba;
$custom-dark: #000000;
JSON
{
  "hex": "#9b339d",
  "rgb": {
    "r": 155,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 298.868,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51424,
    "c": 0.18554,
    "h": 327.1
  },
  "luminance": 0.11771
}

Semantic roles & 50–950 ramp

primary
#9B339D
secondary
#72BB70
accent
#DA4D50
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9B339D

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

Preview Lab → · Contrast checker → · Palette generator →

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