#9E1B8B#9E1B8B

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

Color values

HEX#9E1B8B
RGBrgb(158, 27, 139)
HSLhsl(309, 71%, 36%)
HSVhsv(309, 83%, 62%)
CMYKcmyk(0%, 82.9%, 12%, 38%)
CIE-LABlab(37.70, 61.69, -30.42)
CIE-LCHlch(37.70, 68.78, 333.75°)
OKLaboklab(48.94% 0.1805 -0.0833)
OKLCHoklch(48.94% 0.199 335.2)
XYZxyz(19.1530, 9.9188, 25.3269)
Luminance0.0992 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1B8B #1B9E2E
analogous
#701B9E #9E1B8B #9E1B4A
triadic
#9E1B8B #8B9E1B #1B8B9E
tetradic
#9E1B8B #9E701B #1B9E2E #1B4A9E
square
#9E1B8B #9E701B #1B9E2E #1B4A9E
split-complementary
#9E1B8B #4A9E1B #1B9E70
monochromatic
#35092F #6A125D #9E1B8B #D224B9 #E152CD

Accessibility & contrast

On white

7.04
#9E1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9E1B8B
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1B8B#FFFFFF#000000##FFFFFF
##9E1B8B1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4D8E
Deuteranopia (green-blind)
#4E5F88
Tritanopia (blue-blind)
#A62854
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1b8b;
/* rgb */ color: rgb(158, 27, 139);
/* oklch */ color: oklch(48.9% 0.199 335.2);
Tailwind
colors: {
  custom: {
    50: '#bf6aad',
    500: '#9e1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #9e1b8b;
$custom-light: #bf6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1b8b",
  "rgb": {
    "r": 158,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 308.702,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48943,
    "c": 0.19878,
    "h": 335.2
  },
  "luminance": 0.09917
}

Semantic roles & 50–950 ramp

primary
#9E1B8B
secondary
#51C461
accent
#EE543A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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