#9E3AAA#9E3AAA

#9E3AAA is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.3% C 0.189 H 323.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9E3AAA
RGBrgb(158, 58, 170)
HSLhsl(294, 49%, 45%)
HSVhsv(294, 66%, 67%)
CMYKcmyk(7.1%, 65.9%, 0%, 33.3%)
CIE-LABlab(43.06, 56.41, -40.65)
CIE-LCHlch(43.06, 69.53, 324.22°)
OKLaboklab(53.34% 0.1516 -0.1131)
OKLCHoklch(53.34% 0.189 323.3)
XYZxyz(22.8686, 13.1988, 39.3655)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E3AAA #46AA3A
analogous
#663AAA #9E3AAA #AA3A7E
triadic
#9E3AAA #AA9E3A #3AAA9E
tetradic
#9E3AAA #AA663A #46AA3A #3A7EAA
square
#9E3AAA #AA663A #46AA3A #3A7EAA
split-complementary
#9E3AAA #7EAA3A #3AAA66
monochromatic
#491B4F #742A7C #9E3AAA #BB5AC7 #CE88D6

Accessibility & contrast

On white

5.77
#9E3AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9E3AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E3AAA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E3AAA#FFFFFF#000000##FFFFFF
##9E3AAA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205EAD
Deuteranopia (green-blind)
#4B6AA7
Tritanopia (blue-blind)
#A14C6D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9e3aaa;
/* rgb */ color: rgb(158, 58, 170);
/* oklch */ color: oklch(53.3% 0.189 323.3);
Tailwind
colors: {
  custom: {
    50: '#be78c4',
    500: '#9e3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #9e3aaa;
$custom-light: #be78c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e3aaa",
  "rgb": {
    "r": 158,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 293.571,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53344,
    "c": 0.18911,
    "h": 323.3
  },
  "luminance": 0.13197
}

Semantic roles & 50–950 ramp

primary
#9E3AAA
secondary
#86C17F
accent
#D94F5E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9E3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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