#9E34AC#9E34AC

#9E34AC is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.199 H 322.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9E34AC
RGBrgb(158, 52, 172)
HSLhsl(293, 54%, 44%)
HSVhsv(293, 70%, 67%)
CMYKcmyk(8.1%, 69.8%, 0%, 32.5%)
CIE-LABlab(42.32, 59.20, -43.02)
CIE-LCHlch(42.32, 73.18, 323.99°)
OKLaboklab(52.85% 0.1582 -0.12)
OKLCHoklch(52.85% 0.199 322.8)
XYZxyz(22.7742, 12.7049, 40.2745)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E34AC #42AC34
analogous
#6234AC #9E34AC #AC347E
triadic
#9E34AC #AC9E34 #34AC9E
tetradic
#9E34AC #AC6234 #42AC34 #347EAC
square
#9E34AC #AC6234 #42AC34 #347EAC
split-complementary
#9E34AC #7EAC34 #34AC62
monochromatic
#48184E #73267D #9E34AC #BD52CB #CF81D9

Accessibility & contrast

On white

5.93
#9E34AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9E34AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E34AC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E34AC#FFFFFF#000000##FFFFFF
##9E34AC1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5CAF
Deuteranopia (green-blind)
#4668A9
Tritanopia (blue-blind)
#A0496C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e34ac;
/* rgb */ color: rgb(158, 52, 172);
/* oklch */ color: oklch(52.8% 0.199 322.8);
Tailwind
colors: {
  custom: {
    50: '#be75c5',
    500: '#9e34ac',
    950: '#000000',
  },
}
SCSS
$custom: #9e34ac;
$custom-light: #be75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9e34ac",
  "rgb": {
    "r": 158,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 293,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52845,
    "c": 0.19851,
    "h": 322.8
  },
  "luminance": 0.12704
}

Semantic roles & 50–950 ramp

primary
#9E34AC
secondary
#82C279
accent
#DD4B5C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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