#9F1FA6#9F1FA6

#9F1FA6 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.9% C 0.216 H 325.8°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#9F1FA6
RGBrgb(159, 31, 166)
HSLhsl(297, 69%, 39%)
HSVhsv(297, 81%, 65%)
CMYKcmyk(4.2%, 81.3%, 0%, 34.9%)
CIE-LABlab(39.76, 65.12, -43.52)
CIE-LCHlch(39.76, 78.32, 326.24°)
OKLaboklab(50.94% 0.1782 -0.1213)
OKLCHoklch(50.94% 0.216 325.8)
XYZxyz(21.6705, 11.1056, 37.0712)
Luminance0.1110 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1FA6 #26A61F
analogous
#5B1FA6 #9F1FA6 #A61F69
triadic
#9F1FA6 #A69F1F #1FA69F
tetradic
#9F1FA6 #A65B1F #26A61F #1F69A6
square
#9F1FA6 #A65B1F #26A61F #1F69A6
split-complementary
#9F1FA6 #69A61F #1FA65B
monochromatic
#3C0C3F #6E1572 #9F1FA6 #CE2BD7 #DA5EE1

Accessibility & contrast

On white

6.52
#9F1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9F1FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1FA6
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1FA6#FFFFFF#000000##FFFFFF
##9F1FA61.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#4163A3
Tritanopia (blue-blind)
#A33A64
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f1fa6;
/* rgb */ color: rgb(159, 31, 166);
/* oklch */ color: oklch(50.9% 0.216 325.8);
Tailwind
colors: {
  custom: {
    50: '#bf6cc1',
    500: '#9f1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #9f1fa6;
$custom-light: #bf6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1fa6",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 296.889,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50939,
    "c": 0.21553,
    "h": 325.8
  },
  "luminance": 0.11104
}

Semantic roles & 50–950 ramp

primary
#9F1FA6
secondary
#61C55B
accent
#EB3C45
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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