#9D34AB#9D34AB

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

Color values

HEX#9D34AB
RGBrgb(157, 52, 171)
HSLhsl(293, 53%, 44%)
HSVhsv(293, 70%, 67%)
CMYKcmyk(8.2%, 69.6%, 0%, 32.9%)
CIE-LABlab(42.10, 58.79, -42.78)
CIE-LCHlch(42.10, 72.71, 323.96°)
OKLaboklab(52.64% 0.157 -0.1193)
OKLCHoklch(52.64% 0.197 322.8)
XYZxyz(22.4826, 12.5656, 39.7614)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D34AB #42AB34
analogous
#6134AB #9D34AB #AB347D
triadic
#9D34AB #AB9D34 #34AB9D
tetradic
#9D34AB #AB6134 #42AB34 #347DAB
square
#9D34AB #AB6134 #42AB34 #347DAB
split-complementary
#9D34AB #7DAB34 #34AB61
monochromatic
#47174D #72267C #9D34AB #BC52CA #CE81D9

Accessibility & contrast

On white

5.98
#9D34AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9D34AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D34AB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D34AB#FFFFFF#000000##FFFFFF
##9D34AB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5CAE
Deuteranopia (green-blind)
#4667A8
Tritanopia (blue-blind)
#9F486C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d34ab;
/* rgb */ color: rgb(157, 52, 171);
/* oklch */ color: oklch(52.6% 0.197 322.8);
Tailwind
colors: {
  custom: {
    50: '#bd75c4',
    500: '#9d34ab',
    950: '#000000',
  },
}
SCSS
$custom: #9d34ab;
$custom-light: #bd75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d34ab",
  "rgb": {
    "r": 157,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 292.941,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52642,
    "c": 0.19718,
    "h": 322.8
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#9D34AB
secondary
#82C279
accent
#DD4B5C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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