#9E1791#9E1791

#9E1791 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.1% C 0.206 H 332.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9E1791
RGBrgb(158, 23, 145)
HSLhsl(306, 75%, 35%)
HSVhsv(306, 85%, 62%)
CMYKcmyk(0%, 85.4%, 8.2%, 38%)
CIE-LABlab(37.71, 63.47, -34.07)
CIE-LCHlch(37.71, 72.03, 331.77°)
OKLaboklab(49.06% 0.1833 -0.0938)
OKLCHoklch(49.06% 0.206 332.9)
XYZxyz(19.5179, 9.9280, 27.6709)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1791 #179E24
analogous
#67179E #9E1791 #9E174D
triadic
#9E1791 #919E17 #17919E
tetradic
#9E1791 #9E6717 #179E24 #174D9E
square
#9E1791 #9E6717 #179E24 #174D9E
split-complementary
#9E1791 #4D9E17 #179E67
monochromatic
#33072F #690F60 #9E1791 #D31FC2 #E54BD6

Accessibility & contrast

On white

7.03
#9E1791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9E1791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1791
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1791#FFFFFF#000000##FFFFFF
##9E17911.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4D94
Deuteranopia (green-blind)
#4A5F8E
Tritanopia (blue-blind)
#A52A56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1791;
/* rgb */ color: rgb(158, 23, 145);
/* oklch */ color: oklch(49.1% 0.206 332.9);
Tailwind
colors: {
  custom: {
    50: '#bf69b2',
    500: '#9e1791',
    950: '#000000',
  },
}
SCSS
$custom: #9e1791;
$custom-light: #bf69b2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1791",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 145
  },
  "hsl": {
    "h": 305.778,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4906,
    "c": 0.20589,
    "h": 332.9
  },
  "luminance": 0.09926
}

Semantic roles & 50–950 ramp

primary
#9E1791
secondary
#4AC656
accent
#F14937
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9E1791

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

Preview Lab → · Contrast checker → · Palette generator →

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