#9B339F#9B339F

#9B339F is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.5% C 0.187 H 326.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9B339F
RGBrgb(155, 51, 159)
HSLhsl(298, 51%, 41%)
HSVhsv(298, 68%, 62%)
CMYKcmyk(2.5%, 67.9%, 0%, 37.6%)
CIE-LABlab(40.96, 56.55, -37.44)
CIE-LCHlch(40.96, 67.82, 326.49°)
OKLaboklab(51.54% 0.1558 -0.1038)
OKLCHoklch(51.54% 0.187 326.3)
XYZxyz(20.9590, 11.8408, 33.9757)
Luminance0.1184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B339F #379F33
analogous
#65339F #9B339F #9F336D
triadic
#9B339F #9F9B33 #339F9B
tetradic
#9B339F #9F6533 #379F33 #336D9F
square
#9B339F #9F6533 #379F33 #336D9F
split-complementary
#9B339F #6D9F33 #339F65
monochromatic
#411542 #6E2471 #9B339F #C04AC5 #D079D4

Accessibility & contrast

On white

6.24
#9B339F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9B339F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B339F
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B339F#FFFFFF#000000##FFFFFF
##9B339F1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F58A2
Deuteranopia (green-blind)
#4B659C
Tritanopia (blue-blind)
#9F4365
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9b339f;
/* rgb */ color: rgb(155, 51, 159);
/* oklch */ color: oklch(51.5% 0.187 326.3);
Tailwind
colors: {
  custom: {
    50: '#bc74bc',
    500: '#9b339f',
    950: '#000000',
  },
}
SCSS
$custom: #9b339f;
$custom-light: #bc74bc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b339f",
  "rgb": {
    "r": 155,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 297.778,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51539,
    "c": 0.18722,
    "h": 326.3
  },
  "luminance": 0.11839
}

Semantic roles & 50–950 ramp

primary
#9B339F
secondary
#74BC71
accent
#DB4D52
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9B339F

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

Preview Lab → · Contrast checker → · Palette generator →

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