#9F3196#9F3196

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

Color values

HEX#9F3196
RGBrgb(159, 49, 150)
HSLhsl(305, 53%, 41%)
HSVhsv(305, 69%, 62%)
CMYKcmyk(0%, 69.2%, 5.7%, 37.6%)
CIE-LABlab(40.85, 56.75, -32.15)
CIE-LCHlch(40.85, 65.23, 330.47°)
OKLaboklab(51.43% 0.162 -0.0884)
OKLCHoklch(51.43% 0.185 331.4)
XYZxyz(20.9014, 11.7712, 30.0195)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3196 #319F3A
analogous
#71319F #9F3196 #9F315F
triadic
#9F3196 #969F31 #31969F
tetradic
#9F3196 #9F7131 #319F3A #315F9F
square
#9F3196 #9F7131 #319F3A #315F9F
split-complementary
#9F3196 #5F9F31 #319F71
monochromatic
#41143E #70236A #9F3196 #C647BC #D576CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F3196#FFFFFF#000000##FFFFFF
##9F31961.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)
#295699
Deuteranopia (green-blind)
#526693
Tritanopia (blue-blind)
#A53D5F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f3196;
/* rgb */ color: rgb(159, 49, 150);
/* oklch */ color: oklch(51.4% 0.185 331.4);
Tailwind
colors: {
  custom: {
    50: '#bf73b5',
    500: '#9f3196',
    950: '#000000',
  },
}
SCSS
$custom: #9f3196;
$custom-light: #bf73b5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3196",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 304.909,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51428,
    "c": 0.18458,
    "h": 331.4
  },
  "luminance": 0.1177
}

Semantic roles & 50–950 ramp

primary
#9F3196
secondary
#6FBD75
accent
#DC574C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #9F3196

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

Preview Lab → · Contrast checker → · Palette generator →

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