#9E1B9C#9E1B9C

#9E1B9C is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.211 H 328.9°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#9E1B9C
RGBrgb(158, 27, 156)
HSLhsl(301, 71%, 36%)
HSVhsv(301, 83%, 62%)
CMYKcmyk(0%, 82.9%, 1.3%, 38%)
CIE-LABlab(38.65, 64.27, -39.28)
CIE-LCHlch(38.65, 75.33, 328.57°)
OKLaboklab(49.93% 0.1805 -0.1089)
OKLCHoklch(49.93% 0.211 328.9)
XYZxyz(20.4931, 10.4549, 32.3847)
Luminance0.1045 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1B9C #1B9E1D
analogous
#5F1B9E #9E1B9C #9E1B5B
triadic
#9E1B9C #9C9E1B #1B9C9E
tetradic
#9E1B9C #9E5F1B #1B9E1D #1B5B9E
square
#9E1B9C #9E5F1B #1B9E1D #1B5B9E
split-complementary
#9E1B9C #5B9E1B #1B9E5F
monochromatic
#350935 #6A1268 #9E1B9C #D224D0 #E152DF

Accessibility & contrast

On white

6.79
#9E1B9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9E1B9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1B9C
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1B9C#FFFFFF#000000##FFFFFF
##9E1B9C1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e1b9c;
/* rgb */ color: rgb(158, 27, 156);
/* oklch */ color: oklch(49.9% 0.211 328.9);
Tailwind
colors: {
  custom: {
    50: '#bf6aba',
    500: '#9e1b9c',
    950: '#000000',
  },
}
SCSS
$custom: #9e1b9c;
$custom-light: #bf6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1b9c",
  "rgb": {
    "r": 158,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 300.916,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49926,
    "c": 0.21081,
    "h": 328.9
  },
  "luminance": 0.10453
}

Semantic roles & 50–950 ramp

primary
#9E1B9C
secondary
#51C452
accent
#EE3D3A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9E1B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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