#9F3198#9F3198

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

Color values

HEX#9F3198
RGBrgb(159, 49, 152)
HSLhsl(304, 53%, 41%)
HSVhsv(304, 69%, 62%)
CMYKcmyk(0%, 69.2%, 4.4%, 37.6%)
CIE-LABlab(40.95, 57.08, -33.20)
CIE-LCHlch(40.95, 66.04, 329.82°)
OKLaboklab(51.54% 0.1622 -0.0914)
OKLCHoklch(51.54% 0.186 330.6)
XYZxyz(21.0638, 11.8361, 30.8749)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3198 #319F38
analogous
#6F319F #9F3198 #9F3161
triadic
#9F3198 #989F31 #31989F
tetradic
#9F3198 #9F6F31 #319F38 #31619F
square
#9F3198 #9F6F31 #319F38 #31619F
split-complementary
#9F3198 #619F31 #319F6F
monochromatic
#41143F #70236B #9F3198 #C647BE #D576CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F3198#FFFFFF#000000##FFFFFF
##9F31981.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)
#28579B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#A53E61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f3198;
/* rgb */ color: rgb(159, 49, 152);
/* oklch */ color: oklch(51.5% 0.186 330.6);
Tailwind
colors: {
  custom: {
    50: '#bf73b7',
    500: '#9f3198',
    950: '#000000',
  },
}
SCSS
$custom: #9f3198;
$custom-light: #bf73b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3198",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 303.818,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51538,
    "c": 0.18615,
    "h": 330.6
  },
  "luminance": 0.11835
}

Semantic roles & 50–950 ramp

primary
#9F3198
secondary
#6FBD74
accent
#DC554C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #9F3198

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

Preview Lab → · Contrast checker → · Palette generator →

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