#9E1F9F#9E1F9F

#9E1F9F is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.210 H 327.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9E1F9F
RGBrgb(158, 31, 159)
HSLhsl(300, 67%, 37%)
HSVhsv(300, 81%, 62%)
CMYKcmyk(0.6%, 80.5%, 0%, 37.6%)
CIE-LABlab(39.16, 63.77, -40.27)
CIE-LCHlch(39.16, 75.42, 327.73°)
OKLaboklab(50.35% 0.1776 -0.1118)
OKLCHoklch(50.35% 0.21 327.8)
XYZxyz(20.8483, 10.7538, 33.7718)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F9F #209F1F
analogous
#5E1F9F #9E1F9F #9F1F60
triadic
#9E1F9F #9F9E1F #1F9F9E
tetradic
#9E1F9F #9F5E1F #209F1F #1F609F
square
#9E1F9F #9F5E1F #209F1F #1F609F
split-complementary
#9E1F9F #609F1F #1F9F5E
monochromatic
#380B39 #6B156C #9E1F9F #D129D2 #DE5ADF

Accessibility & contrast

On white

6.67
#9E1F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9E1F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1F9F
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F9F#FFFFFF#000000##FFFFFF
##9E1F9F1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#44629C
Tritanopia (blue-blind)
#A33660
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e1f9f;
/* rgb */ color: rgb(158, 31, 159);
/* oklch */ color: oklch(50.3% 0.210 327.8);
Tailwind
colors: {
  custom: {
    50: '#bf6cbc',
    500: '#9e1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f9f;
$custom-light: #bf6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f9f",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 299.531,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.50349,
    "c": 0.20983,
    "h": 327.8
  },
  "luminance": 0.10752
}

Semantic roles & 50–950 ramp

primary
#9E1F9F
secondary
#58C357
accent
#EA3E3F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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