#9E34AA#9E34AA

#9E34AA is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.197 H 323.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9E34AA
RGBrgb(158, 52, 170)
HSLhsl(294, 53%, 44%)
HSVhsv(294, 69%, 67%)
CMYKcmyk(7.1%, 69.4%, 0%, 33.3%)
CIE-LABlab(42.20, 58.83, -42.02)
CIE-LCHlch(42.20, 72.30, 324.46°)
OKLaboklab(52.72% 0.1582 -0.1171)
OKLCHoklch(52.72% 0.197 323.5)
XYZxyz(22.5836, 12.6287, 39.2705)
Luminance0.1263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E34AA #40AA34
analogous
#6334AA #9E34AA #AA347B
triadic
#9E34AA #AA9E34 #34AA9E
tetradic
#9E34AA #AA6334 #40AA34 #347BAA
square
#9E34AA #AA6334 #40AA34 #347BAA
split-complementary
#9E34AA #7BAA34 #34AA63
monochromatic
#47174C #72267B #9E34AA #BE51CA #CF80D8

Accessibility & contrast

On white

5.96
#9E34AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9E34AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E34AA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E34AA#FFFFFF#000000##FFFFFF
##9E34AA1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125CAD
Deuteranopia (green-blind)
#4768A7
Tritanopia (blue-blind)
#A1486B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e34aa;
/* rgb */ color: rgb(158, 52, 170);
/* oklch */ color: oklch(52.7% 0.197 323.5);
Tailwind
colors: {
  custom: {
    50: '#be75c4',
    500: '#9e34aa',
    950: '#000000',
  },
}
SCSS
$custom: #9e34aa;
$custom-light: #be75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e34aa",
  "rgb": {
    "r": 158,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 293.898,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52723,
    "c": 0.19679,
    "h": 323.5
  },
  "luminance": 0.12627
}

Semantic roles & 50–950 ramp

primary
#9E34AA
secondary
#80C178
accent
#DD4B5A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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