#9A34AC#9A34AC

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

Color values

HEX#9A34AC
RGBrgb(154, 52, 172)
HSLhsl(291, 54%, 44%)
HSVhsv(291, 70%, 67%)
CMYKcmyk(10.5%, 69.8%, 0%, 32.5%)
CIE-LABlab(41.70, 58.30, -44.04)
CIE-LCHlch(41.70, 73.06, 322.93°)
OKLaboklab(52.28% 0.1534 -0.1231)
OKLCHoklch(52.28% 0.197 321.3)
XYZxyz(22.0000, 12.3057, 40.2382)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A34AC #46AC34
analogous
#5E34AC #9A34AC #AC3482
triadic
#9A34AC #AC9A34 #34AC9A
tetradic
#9A34AC #AC5E34 #46AC34 #3482AC
square
#9A34AC #AC5E34 #46AC34 #3482AC
split-complementary
#9A34AC #82AC34 #34AC5E
monochromatic
#46184E #70267D #9A34AC #B952CB #CC81D9

Accessibility & contrast

On white

6.07
#9A34AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9A34AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A34AC
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A34AC#FFFFFF#000000##FFFFFF
##9A34AC1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035BAF
Deuteranopia (green-blind)
#4266A9
Tritanopia (blue-blind)
#9B496C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a34ac;
/* rgb */ color: rgb(154, 52, 172);
/* oklch */ color: oklch(52.3% 0.197 321.3);
Tailwind
colors: {
  custom: {
    50: '#bb74c5',
    500: '#9a34ac',
    950: '#000000',
  },
}
SCSS
$custom: #9a34ac;
$custom-light: #bb74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a34ac",
  "rgb": {
    "r": 154,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 291,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52279,
    "c": 0.1967,
    "h": 321.3
  },
  "luminance": 0.12305
}

Semantic roles & 50–950 ramp

primary
#9A34AC
secondary
#84C279
accent
#DD4B61
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9A34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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