#9F3296#9F3296

#9F3296 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.5% C 0.183 H 331.4°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9F3296
RGBrgb(159, 50, 150)
HSLhsl(305, 52%, 41%)
HSVhsv(305, 69%, 62%)
CMYKcmyk(0%, 68.6%, 5.7%, 37.6%)
CIE-LABlab(40.99, 56.37, -31.94)
CIE-LCHlch(40.99, 64.79, 330.47°)
OKLaboklab(51.53% 0.1609 -0.0878)
OKLCHoklch(51.53% 0.183 331.4)
XYZxyz(20.9437, 11.8558, 30.0336)
Luminance0.1185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3296 #329F3B
analogous
#71329F #9F3296 #9F325F
triadic
#9F3296 #969F32 #32969F
tetradic
#9F3296 #9F7132 #329F3B #325F9F
square
#9F3296 #9F7132 #329F3B #325F9F
split-complementary
#9F3296 #5F9F32 #329F71
monochromatic
#42153E #70236A #9F3296 #C649BB #D477CD

Accessibility & contrast

On white

6.23
#9F3296 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F3296
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3296#FFFFFF#000000##FFFFFF
##9F32961.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5799
Deuteranopia (green-blind)
#526693
Tritanopia (blue-blind)
#A53E60
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f3296;
/* rgb */ color: rgb(159, 50, 150);
/* oklch */ color: oklch(51.5% 0.183 331.4);
Tailwind
colors: {
  custom: {
    50: '#bf73b5',
    500: '#9f3296',
    950: '#000000',
  },
}
SCSS
$custom: #9f3296;
$custom-light: #bf73b5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3296",
  "rgb": {
    "r": 159,
    "g": 50,
    "b": 150
  },
  "hsl": {
    "h": 304.954,
    "s": 52.153,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51527,
    "c": 0.18331,
    "h": 331.4
  },
  "luminance": 0.11854
}

Semantic roles & 50–950 ramp

primary
#9F3296
secondary
#70BD77
accent
#DC584C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #9F3296

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

Preview Lab → · Contrast checker → · Palette generator →

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