#9E1B9E#9E1B9E

#9E1B9E is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.212 H 328.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#9E1B9E
RGBrgb(158, 27, 158)
HSLhsl(300, 71%, 36%)
HSVhsv(300, 83%, 62%)
CMYKcmyk(0%, 82.9%, 0%, 38%)
CIE-LABlab(38.77, 64.59, -40.30)
CIE-LCHlch(38.77, 76.13, 328.04°)
OKLaboklab(50.05% 0.1804 -0.1119)
OKLCHoklch(50.05% 0.212 328.2)
XYZxyz(20.6638, 10.5232, 33.2840)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1B9E #1B9E1B
analogous
#5D1B9E #9E1B9E #9E1B5D
triadic
#9E1B9E #9E9E1B #1B9E9E
tetradic
#9E1B9E #9E5D1B #1B9E1B #1B5D9E
square
#9E1B9E #9E5D1B #1B9E1B #1B5D9E
split-complementary
#9E1B9E #5D9E1B #1B9E5D
monochromatic
#350935 #6A126A #9E1B9E #D224D2 #E152E1

Accessibility & contrast

On white

6.76
#9E1B9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9E1B9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1B9E
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1B9E#FFFFFF#000000##FFFFFF
##9E1B9E1.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A1
Deuteranopia (green-blind)
#44619B
Tritanopia (blue-blind)
#A3345E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e1b9e;
/* rgb */ color: rgb(158, 27, 158);
/* oklch */ color: oklch(50.0% 0.212 328.2);
Tailwind
colors: {
  custom: {
    50: '#bf6bbb',
    500: '#9e1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #9e1b9e;
$custom-light: #bf6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1b9e",
  "rgb": {
    "r": 158,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 300,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.50048,
    "c": 0.21226,
    "h": 328.2
  },
  "luminance": 0.10522
}

Semantic roles & 50–950 ramp

primary
#9E1B9E
secondary
#51C451
accent
#EE3A3A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9E1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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