#9F34A2#9F34A2

#9F34A2 is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.4% C 0.191 H 326.7°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9F34A2
RGBrgb(159, 52, 162)
HSLhsl(298, 51%, 42%)
HSVhsv(298, 68%, 64%)
CMYKcmyk(1.9%, 67.9%, 0%, 36.5%)
CIE-LABlab(41.90, 57.64, -37.71)
CIE-LCHlch(41.90, 68.88, 326.80°)
OKLaboklab(52.4% 0.1593 -0.1045)
OKLCHoklch(52.4% 0.191 326.7)
XYZxyz(22.0473, 12.4370, 35.4147)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34A2 #37A234
analogous
#6834A2 #9F34A2 #A2346E
triadic
#9F34A2 #A29F34 #34A29F
tetradic
#9F34A2 #A26834 #37A234 #346EA2
square
#9F34A2 #A26834 #37A234 #346EA2
split-complementary
#9F34A2 #6EA234 #34A268
monochromatic
#441645 #722574 #9F34A2 #C34DC6 #D27CD5

Accessibility & contrast

On white

6.02
#9F34A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9F34A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F34A2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F34A2#FFFFFF#000000##FFFFFF
##9F34A21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA5
Deuteranopia (green-blind)
#4D689F
Tritanopia (blue-blind)
#A34467
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9f34a2;
/* rgb */ color: rgb(159, 52, 162);
/* oklch */ color: oklch(52.4% 0.191 326.7);
Tailwind
colors: {
  custom: {
    50: '#bf75be',
    500: '#9f34a2',
    950: '#000000',
  },
}
SCSS
$custom: #9f34a2;
$custom-light: #bf75be;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34a2",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 298.364,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52395,
    "c": 0.19053,
    "h": 326.7
  },
  "luminance": 0.12436
}

Semantic roles & 50–950 ramp

primary
#9F34A2
secondary
#76BE74
accent
#DB4D51
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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