#9F1FA1#9F1FA1

#9F1FA1 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.6% C 0.212 H 327.5°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#9F1FA1
RGBrgb(159, 31, 161)
HSLhsl(299, 68%, 38%)
HSVhsv(299, 81%, 63%)
CMYKcmyk(1.2%, 80.7%, 0%, 36.9%)
CIE-LABlab(39.45, 64.30, -41.00)
CIE-LCHlch(39.45, 76.26, 327.47°)
OKLaboklab(50.63% 0.1785 -0.1139)
OKLCHoklch(50.63% 0.212 327.5)
XYZxyz(21.2208, 10.9257, 34.7025)
Luminance0.1092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1FA1 #21A11F
analogous
#5E1FA1 #9F1FA1 #A11F62
triadic
#9F1FA1 #A19F1F #1FA19F
tetradic
#9F1FA1 #A15E1F #21A11F #1F62A1
square
#9F1FA1 #A15E1F #21A11F #1F62A1
split-complementary
#9F1FA1 #62A11F #1FA15E
monochromatic
#3A0B3A #6C156E #9F1FA1 #D229D4 #DD5BDF

Accessibility & contrast

On white

6.59
#9F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9F1FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1FA1
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1FA1#FFFFFF#000000##FFFFFF
##9F1FA11.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A4
Deuteranopia (green-blind)
#44629E
Tritanopia (blue-blind)
#A43761
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f1fa1;
/* rgb */ color: rgb(159, 31, 161);
/* oklch */ color: oklch(50.6% 0.212 327.5);
Tailwind
colors: {
  custom: {
    50: '#bf6cbd',
    500: '#9f1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #9f1fa1;
$custom-light: #bf6cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1fa1",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 299.077,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50628,
    "c": 0.21177,
    "h": 327.5
  },
  "luminance": 0.10924
}

Semantic roles & 50–950 ramp

primary
#9F1FA1
secondary
#5AC458
accent
#EB3D40
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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