#9F34AB#9F34AB

#9F34AB is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.9% C 0.198 H 323.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9F34AB
RGBrgb(159, 52, 171)
HSLhsl(294, 53%, 44%)
HSVhsv(294, 70%, 67%)
CMYKcmyk(7%, 69.6%, 0%, 32.9%)
CIE-LABlab(42.41, 59.24, -42.27)
CIE-LCHlch(42.41, 72.77, 324.49°)
OKLaboklab(52.93% 0.1593 -0.1177)
OKLCHoklch(52.93% 0.198 323.5)
XYZxyz(22.8761, 12.7685, 39.7798)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34AB #40AB34
analogous
#6334AB #9F34AB #AB347B
triadic
#9F34AB #AB9F34 #34AB9F
tetradic
#9F34AB #AB6334 #40AB34 #347BAB
square
#9F34AB #AB6334 #40AB34 #347BAB
split-complementary
#9F34AB #7BAB34 #34AB63
monochromatic
#48174D #73267C #9F34AB #BE52CA #D081D9

Accessibility & contrast

On white

5.91
#9F34AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9F34AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F34AB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F34AB#FFFFFF#000000##FFFFFF
##9F34AB1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115CAE
Deuteranopia (green-blind)
#4868A8
Tritanopia (blue-blind)
#A2486C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f34ab;
/* rgb */ color: rgb(159, 52, 171);
/* oklch */ color: oklch(52.9% 0.198 323.5);
Tailwind
colors: {
  custom: {
    50: '#bf75c4',
    500: '#9f34ab',
    950: '#000000',
  },
}
SCSS
$custom: #9f34ab;
$custom-light: #bf75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34ab",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 293.95,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52926,
    "c": 0.19812,
    "h": 323.5
  },
  "luminance": 0.12767
}

Semantic roles & 50–950 ramp

primary
#9F34AB
secondary
#80C279
accent
#DD4B5A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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