#9E34A2#9E34A2

#9E34A2 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.3% C 0.190 H 326.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9E34A2
RGBrgb(158, 52, 162)
HSLhsl(298, 51%, 42%)
HSVhsv(298, 68%, 64%)
CMYKcmyk(2.5%, 67.9%, 0%, 36.5%)
CIE-LABlab(41.74, 57.40, -37.97)
CIE-LCHlch(41.74, 68.82, 326.51°)
OKLaboklab(52.25% 0.1582 -0.1053)
OKLCHoklch(52.25% 0.19 326.4)
XYZxyz(21.8497, 12.3351, 35.4055)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E34A2 #38A234
analogous
#6734A2 #9E34A2 #A2346F
triadic
#9E34A2 #A29E34 #34A29E
tetradic
#9E34A2 #A26734 #38A234 #346FA2
square
#9E34A2 #A26734 #38A234 #346FA2
split-complementary
#9E34A2 #6FA234 #34A267
monochromatic
#441645 #712574 #9E34A2 #C24DC6 #D27CD5

Accessibility & contrast

On white

6.06
#9E34A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9E34A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E34A2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E34A2#FFFFFF#000000##FFFFFF
##9E34A21.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA5
Deuteranopia (green-blind)
#4C679F
Tritanopia (blue-blind)
#A24467
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9e34a2;
/* rgb */ color: rgb(158, 52, 162);
/* oklch */ color: oklch(52.3% 0.190 326.4);
Tailwind
colors: {
  custom: {
    50: '#be75be',
    500: '#9e34a2',
    950: '#000000',
  },
}
SCSS
$custom: #9e34a2;
$custom-light: #be75be;
$custom-dark: #000000;
JSON
{
  "hex": "#9e34a2",
  "rgb": {
    "r": 158,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 297.818,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5225,
    "c": 0.19,
    "h": 326.4
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#9E34A2
secondary
#77BE74
accent
#DB4D52
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9E34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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