#9F34A5#9F34A5

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

Color values

HEX#9F34A5
RGBrgb(159, 52, 165)
HSLhsl(297, 52%, 43%)
HSVhsv(297, 68%, 65%)
CMYKcmyk(3.6%, 68.5%, 0%, 35.3%)
CIE-LABlab(42.07, 58.16, -39.24)
CIE-LCHlch(42.07, 70.16, 326.00°)
OKLaboklab(52.57% 0.1594 -0.1089)
OKLCHoklch(52.57% 0.193 325.6)
XYZxyz(22.3171, 12.5449, 36.8360)
Luminance0.1254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34A5 #3AA534
analogous
#6634A5 #9F34A5 #A53473
triadic
#9F34A5 #A59F34 #34A59F
tetradic
#9F34A5 #A56634 #3AA534 #3473A5
square
#9F34A5 #A56634 #3AA534 #3473A5
split-complementary
#9F34A5 #73A534 #34A566
monochromatic
#451748 #722576 #9F34A5 #C14FC7 #D17DD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F34A5#FFFFFF#000000##FFFFFF
##9F34A51.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)
#1C5BA8
Deuteranopia (green-blind)
#4B68A2
Tritanopia (blue-blind)
#A34568
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9f34a5;
/* rgb */ color: rgb(159, 52, 165);
/* oklch */ color: oklch(52.6% 0.193 325.6);
Tailwind
colors: {
  custom: {
    50: '#bf75c0',
    500: '#9f34a5',
    950: '#000000',
  },
}
SCSS
$custom: #9f34a5;
$custom-light: #bf75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34a5",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 296.814,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5257,
    "c": 0.19304,
    "h": 325.6
  },
  "luminance": 0.12544
}

Semantic roles & 50–950 ramp

primary
#9F34A5
secondary
#7ABF76
accent
#DC4C54
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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