#9D34AC#9D34AC

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

Color values

HEX#9D34AC
RGBrgb(157, 52, 172)
HSLhsl(293, 54%, 44%)
HSVhsv(293, 70%, 67%)
CMYKcmyk(8.7%, 69.8%, 0%, 32.5%)
CIE-LABlab(42.16, 58.97, -43.28)
CIE-LCHlch(42.16, 73.15, 323.72°)
OKLaboklab(52.7% 0.157 -0.1208)
OKLCHoklch(52.7% 0.198 322.4)
XYZxyz(22.5783, 12.6039, 40.2653)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D34AC #43AC34
analogous
#6134AC #9D34AC #AC347F
triadic
#9D34AC #AC9D34 #34AC9D
tetradic
#9D34AC #AC6134 #43AC34 #347FAC
square
#9D34AC #AC6134 #43AC34 #347FAC
split-complementary
#9D34AC #7FAC34 #34AC61
monochromatic
#47184E #72267D #9D34AC #BC52CB #CE81D9

Accessibility & contrast

On white

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

On black

3.52
#9D34AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9D34AC#FFFFFF#000000##FFFFFF
##9D34AC1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5CAF
Deuteranopia (green-blind)
#4568A9
Tritanopia (blue-blind)
#9F496C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d34ac;
/* rgb */ color: rgb(157, 52, 172);
/* oklch */ color: oklch(52.7% 0.198 322.4);
Tailwind
colors: {
  custom: {
    50: '#bd75c5',
    500: '#9d34ac',
    950: '#000000',
  },
}
SCSS
$custom: #9d34ac;
$custom-light: #bd75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d34ac",
  "rgb": {
    "r": 157,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 292.5,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52703,
    "c": 0.19805,
    "h": 322.4
  },
  "luminance": 0.12603
}

Semantic roles & 50–950 ramp

primary
#9D34AC
secondary
#83C279
accent
#DD4B5D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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