#9F34AA#9F34AA

#9F34AA is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.9% C 0.197 H 323.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9F34AA
RGBrgb(159, 52, 170)
HSLhsl(294, 53%, 44%)
HSVhsv(294, 69%, 67%)
CMYKcmyk(6.5%, 69.4%, 0%, 33.3%)
CIE-LABlab(42.35, 59.06, -41.76)
CIE-LCHlch(42.35, 72.33, 324.73°)
OKLaboklab(52.87% 0.1594 -0.1163)
OKLCHoklch(52.87% 0.197 323.9)
XYZxyz(22.7811, 12.7305, 39.2797)
Luminance0.1273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34AA #3FAA34
analogous
#6434AA #9F34AA #AA347A
triadic
#9F34AA #AA9F34 #34AA9F
tetradic
#9F34AA #AA6434 #3FAA34 #347AAA
square
#9F34AA #AA6434 #3FAA34 #347AAA
split-complementary
#9F34AA #7AAA34 #34AA64
monochromatic
#47174C #73267B #9F34AA #BF51CA #D080D8

Accessibility & contrast

On white

5.92
#9F34AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F34AA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F34AA#FFFFFF#000000##FFFFFF
##9F34AA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135CAD
Deuteranopia (green-blind)
#4868A7
Tritanopia (blue-blind)
#A2486B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f34aa;
/* rgb */ color: rgb(159, 52, 170);
/* oklch */ color: oklch(52.9% 0.197 323.9);
Tailwind
colors: {
  custom: {
    50: '#bf75c4',
    500: '#9f34aa',
    950: '#000000',
  },
}
SCSS
$custom: #9f34aa;
$custom-light: #bf75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34aa",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 294.407,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52866,
    "c": 0.19726,
    "h": 323.9
  },
  "luminance": 0.12729
}

Semantic roles & 50–950 ramp

primary
#9F34AA
secondary
#7FC178
accent
#DD4B59
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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