#9F34B2#9F34B2

#9F34B2 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.204 H 321.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#9F34B2
RGBrgb(159, 52, 178)
HSLhsl(291, 55%, 45%)
HSVhsv(291, 71%, 70%)
CMYKcmyk(10.7%, 70.8%, 0%, 30.2%)
CIE-LABlab(42.83, 60.53, -45.75)
CIE-LCHlch(42.83, 75.87, 322.92°)
OKLaboklab(53.36% 0.1591 -0.1279)
OKLCHoklch(53.36% 0.204 321.2)
XYZxyz(23.5610, 13.0425, 43.3873)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34B2 #47B234
analogous
#6034B2 #9F34B2 #B23486
triadic
#9F34B2 #B29F34 #34B29F
tetradic
#9F34B2 #B26034 #47B234 #3486B2
square
#9F34B2 #B26034 #47B234 #3486B2
split-complementary
#9F34B2 #86B234 #34B260
monochromatic
#4A1853 #752683 #9F34B2 #BB56CE #CE85DB

Accessibility & contrast

On white

5.82
#9F34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9F34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F34B2
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F34B2#FFFFFF#000000##FFFFFF
##9F34B21.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#A04B70
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9f34b2;
/* rgb */ color: rgb(159, 52, 178);
/* oklch */ color: oklch(53.4% 0.204 321.2);
Tailwind
colors: {
  custom: {
    50: '#bf75ca',
    500: '#9f34b2',
    950: '#000000',
  },
}
SCSS
$custom: #9f34b2;
$custom-light: #bf75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34b2",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 290.952,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53357,
    "c": 0.20413,
    "h": 321.2
  },
  "luminance": 0.13041
}

Semantic roles & 50–950 ramp

primary
#9F34B2
secondary
#88C57D
accent
#DE4A60
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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