#9E1B9B#9E1B9B

#9E1B9B is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.9% C 0.210 H 329.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9E1B9B
RGBrgb(158, 27, 155)
HSLhsl(301, 71%, 36%)
HSVhsv(301, 83%, 62%)
CMYKcmyk(0%, 82.9%, 1.9%, 38%)
CIE-LABlab(38.59, 64.11, -38.77)
CIE-LCHlch(38.59, 74.93, 328.84°)
OKLaboklab(49.86% 0.1805 -0.1074)
OKLCHoklch(49.86% 0.21 329.2)
XYZxyz(20.4087, 10.4211, 31.9406)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1B9B #1B9E1E
analogous
#601B9E #9E1B9B #9E1B5A
triadic
#9E1B9B #9B9E1B #1B9B9E
tetradic
#9E1B9B #9E601B #1B9E1E #1B5A9E
square
#9E1B9B #9E601B #1B9E1E #1B5A9E
split-complementary
#9E1B9B #5A9E1B #1B9E60
monochromatic
#350934 #6A1268 #9E1B9B #D224CE #E152DE

Accessibility & contrast

On white

6.81
#9E1B9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9E1B9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1B9B
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1B9B#FFFFFF#000000##FFFFFF
##9E1B9B1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#456198
Tritanopia (blue-blind)
#A4325D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e1b9b;
/* rgb */ color: rgb(158, 27, 155);
/* oklch */ color: oklch(49.9% 0.210 329.2);
Tailwind
colors: {
  custom: {
    50: '#bf6ab9',
    500: '#9e1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #9e1b9b;
$custom-light: #bf6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1b9b",
  "rgb": {
    "r": 158,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 301.374,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49865,
    "c": 0.21008,
    "h": 329.2
  },
  "luminance": 0.1042
}

Semantic roles & 50–950 ramp

primary
#9E1B9B
secondary
#51C453
accent
#EE3E3A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9E1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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