#9F3397#9F3397

#9F3397 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.7% C 0.183 H 331.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9F3397
RGBrgb(159, 51, 151)
HSLhsl(304, 51%, 41%)
HSVhsv(304, 68%, 62%)
CMYKcmyk(0%, 67.9%, 5%, 37.6%)
CIE-LABlab(41.18, 56.15, -32.24)
CIE-LCHlch(41.18, 64.75, 330.13°)
OKLaboklab(51.68% 0.1599 -0.0887)
OKLCHoklch(51.68% 0.183 331)
XYZxyz(21.0678, 11.9745, 30.4739)
Luminance0.1197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3397 #339F3B
analogous
#71339F #9F3397 #9F3361
triadic
#9F3397 #979F33 #33979F
tetradic
#9F3397 #9F7133 #339F3B #33619F
square
#9F3397 #9F7133 #339F3B #33619F
split-complementary
#9F3397 #619F33 #339F71
monochromatic
#42153F #71246B #9F3397 #C54ABC #D479CD

Accessibility & contrast

On white

6.19
#9F3397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9F3397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3397
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3397#FFFFFF#000000##FFFFFF
##9F33971.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#526694
Tritanopia (blue-blind)
#A53F61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f3397;
/* rgb */ color: rgb(159, 51, 151);
/* oklch */ color: oklch(51.7% 0.183 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf74b6',
    500: '#9f3397',
    950: '#000000',
  },
}
SCSS
$custom: #9f3397;
$custom-light: #bf74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3397",
  "rgb": {
    "r": 159,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 304.444,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5168,
    "c": 0.18283,
    "h": 331
  },
  "luminance": 0.11973
}

Semantic roles & 50–950 ramp

primary
#9F3397
secondary
#71BC77
accent
#DB574D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #9F3397

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

Preview Lab → · Contrast checker → · Palette generator →

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