#9E1B8D#9E1B8D

#9E1B8D is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.200 H 334.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#9E1B8D
RGBrgb(158, 27, 141)
HSLhsl(308, 71%, 36%)
HSVhsv(308, 83%, 62%)
CMYKcmyk(0%, 82.9%, 10.8%, 38%)
CIE-LABlab(37.80, 61.98, -31.48)
CIE-LCHlch(37.80, 69.52, 333.07°)
OKLaboklab(49.05% 0.1806 -0.0863)
OKLCHoklch(49.05% 0.2 334.5)
XYZxyz(19.3004, 9.9778, 26.1036)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1B8D #1B9E2C
analogous
#6E1B9E #9E1B8D #9E1B4C
triadic
#9E1B8D #8D9E1B #1B8D9E
tetradic
#9E1B8D #9E6E1B #1B9E2C #1B4C9E
square
#9E1B8D #9E6E1B #1B9E2C #1B4C9E
split-complementary
#9E1B8D #4C9E1B #1B9E6E
monochromatic
#350930 #6A125E #9E1B8D #D224BC #E152CF

Accessibility & contrast

On white

7.01
#9E1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#9E1B8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1B8D
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1B8D#FFFFFF#000000##FFFFFF
##9E1B8D1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#4D608A
Tritanopia (blue-blind)
#A62A55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1b8d;
/* rgb */ color: rgb(158, 27, 141);
/* oklch */ color: oklch(49.1% 0.200 334.5);
Tailwind
colors: {
  custom: {
    50: '#bf6aaf',
    500: '#9e1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1b8d;
$custom-light: #bf6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1b8d",
  "rgb": {
    "r": 158,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 307.786,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49053,
    "c": 0.20015,
    "h": 334.5
  },
  "luminance": 0.09976
}

Semantic roles & 50–950 ramp

primary
#9E1B8D
secondary
#51C460
accent
#EE513A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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