#9E1B9D#9E1B9D

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

Color values

HEX#9E1B9D
RGBrgb(158, 27, 157)
HSLhsl(300, 71%, 36%)
HSVhsv(300, 83%, 62%)
CMYKcmyk(0%, 82.9%, 0.6%, 38%)
CIE-LABlab(38.71, 64.43, -39.79)
CIE-LCHlch(38.71, 75.73, 328.30°)
OKLaboklab(49.99% 0.1804 -0.1104)
OKLCHoklch(49.99% 0.212 328.5)
XYZxyz(20.5781, 10.4889, 32.8325)
Luminance0.1049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1B9D #1B9E1C
analogous
#5E1B9E #9E1B9D #9E1B5C
triadic
#9E1B9D #9D9E1B #1B9D9E
tetradic
#9E1B9D #9E5E1B #1B9E1C #1B5C9E
square
#9E1B9D #9E5E1B #1B9E1C #1B5C9E
split-complementary
#9E1B9D #5C9E1B #1B9E5E
monochromatic
#350935 #6A1269 #9E1B9D #D224D1 #E152E0

Accessibility & contrast

On white

6.78
#9E1B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E1B9D
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1B9D#FFFFFF#000000##FFFFFF
##9E1B9D1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#44619A
Tritanopia (blue-blind)
#A3335E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e1b9d;
/* rgb */ color: rgb(158, 27, 157);
/* oklch */ color: oklch(50.0% 0.212 328.5);
Tailwind
colors: {
  custom: {
    50: '#bf6bba',
    500: '#9e1b9d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1b9d;
$custom-light: #bf6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1b9d",
  "rgb": {
    "r": 158,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 300.458,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49987,
    "c": 0.21154,
    "h": 328.5
  },
  "luminance": 0.10487
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E1B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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