#9E1B8A#9E1B8A

#9E1B8A is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.198 H 335.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#9E1B8A
RGBrgb(158, 27, 138)
HSLhsl(309, 71%, 36%)
HSVhsv(309, 83%, 62%)
CMYKcmyk(0%, 82.9%, 12.7%, 38%)
CIE-LABlab(37.64, 61.54, -29.89)
CIE-LCHlch(37.64, 68.41, 334.10°)
OKLaboklab(48.89% 0.1805 -0.0817)
OKLCHoklch(48.89% 0.198 335.6)
XYZxyz(19.0802, 9.8897, 24.9439)
Luminance0.0989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1B8A #1B9E2F
analogous
#711B9E #9E1B8A #9E1B49
triadic
#9E1B8A #8A9E1B #1B8A9E
tetradic
#9E1B8A #9E711B #1B9E2F #1B499E
square
#9E1B8A #9E711B #1B9E2F #1B499E
split-complementary
#9E1B8A #499E1B #1B9E71
monochromatic
#35092F #6A125C #9E1B8A #D224B8 #E152CC

Accessibility & contrast

On white

7.05
#9E1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9E1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1B8A
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1B8A#FFFFFF#000000##FFFFFF
##9E1B8A1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#4E5F87
Tritanopia (blue-blind)
#A62853
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1b8a;
/* rgb */ color: rgb(158, 27, 138);
/* oklch */ color: oklch(48.9% 0.198 335.6);
Tailwind
colors: {
  custom: {
    50: '#bf6aac',
    500: '#9e1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #9e1b8a;
$custom-light: #bf6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1b8a",
  "rgb": {
    "r": 158,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 309.16,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48888,
    "c": 0.1981,
    "h": 335.6
  },
  "luminance": 0.09888
}

Semantic roles & 50–950 ramp

primary
#9E1B8A
secondary
#51C462
accent
#EE563A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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