#9E1FA6#9E1FA6

#9E1FA6 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.8% C 0.215 H 325.4°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#9E1FA6
RGBrgb(158, 31, 166)
HSLhsl(296, 69%, 39%)
HSVhsv(296, 81%, 65%)
CMYKcmyk(4.8%, 81.3%, 0%, 34.9%)
CIE-LABlab(39.59, 64.93, -43.80)
CIE-LCHlch(39.59, 78.32, 325.99°)
OKLaboklab(50.79% 0.1771 -0.1221)
OKLCHoklch(50.79% 0.215 325.4)
XYZxyz(21.4730, 11.0037, 37.0619)
Luminance0.1100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1FA6 #27A61F
analogous
#5A1FA6 #9E1FA6 #A61F6A
triadic
#9E1FA6 #A69E1F #1FA69E
tetradic
#9E1FA6 #A65A1F #27A61F #1F6AA6
square
#9E1FA6 #A65A1F #27A61F #1F6AA6
split-complementary
#9E1FA6 #6AA61F #1FA65A
monochromatic
#3C0C3F #6D1572 #9E1FA6 #CD2BD7 #D95EE1

Accessibility & contrast

On white

6.56
#9E1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9E1FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1FA6
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1FA6#FFFFFF#000000##FFFFFF
##9E1FA61.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#3F62A3
Tritanopia (blue-blind)
#A23A64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e1fa6;
/* rgb */ color: rgb(158, 31, 166);
/* oklch */ color: oklch(50.8% 0.215 325.4);
Tailwind
colors: {
  custom: {
    50: '#bf6cc1',
    500: '#9e1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #9e1fa6;
$custom-light: #bf6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1fa6",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 296.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50785,
    "c": 0.21511,
    "h": 325.4
  },
  "luminance": 0.11002
}

Semantic roles & 50–950 ramp

primary
#9E1FA6
secondary
#62C55B
accent
#EB3C47
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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