#9F34C5#9F34C5

#9F34C5 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.221 H 315.5°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#9F34C5
RGBrgb(159, 52, 197)
HSLhsl(284, 58%, 49%)
HSVhsv(284, 74%, 77%)
CMYKcmyk(19.3%, 73.6%, 0%, 22.7%)
CIE-LABlab(44.03, 64.16, -54.95)
CIE-LCHlch(44.03, 84.47, 319.42°)
OKLaboklab(54.6% 0.1574 -0.1548)
OKLCHoklch(54.6% 0.221 315.5)
XYZxyz(25.6025, 13.8591, 54.1389)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34C5 #5AC534
analogous
#5734C5 #9F34C5 #C534A3
triadic
#9F34C5 #C59F34 #34C59F
tetradic
#9F34C5 #C55734 #5AC534 #34A3C5
square
#9F34C5 #C55734 #5AC534 #34A3C5
split-complementary
#9F34C5 #A3C534 #34C557
monochromatic
#511A64 #782795 #9F34C5 #B761D5 #CD91E2

Accessibility & contrast

On white

5.57
#9F34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9F34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F34C5
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F34C5#FFFFFF#000000##FFFFFF
##9F34C51.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#306BC2
Tritanopia (blue-blind)
#9C537A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f34c5;
/* rgb */ color: rgb(159, 52, 197);
/* oklch */ color: oklch(54.6% 0.221 315.5);
Tailwind
colors: {
  custom: {
    50: '#c076d7',
    500: '#9f34c5',
    950: '#000000',
  },
}
SCSS
$custom: #9f34c5;
$custom-light: #c076d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34c5",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 284.276,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54598,
    "c": 0.22082,
    "h": 315.5
  },
  "luminance": 0.13858
}

Semantic roles & 50–950 ramp

primary
#9F34C5
secondary
#9ACD88
accent
#E1466F
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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