#9F37A5#9F37A5

#9F37A5 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.9% C 0.189 H 325.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9F37A5
RGBrgb(159, 55, 165)
HSLhsl(297, 50%, 43%)
HSVhsv(297, 67%, 65%)
CMYKcmyk(3.6%, 66.7%, 0%, 35.3%)
CIE-LABlab(42.49, 56.97, -38.57)
CIE-LCHlch(42.49, 68.80, 325.91°)
OKLaboklab(52.87% 0.1561 -0.107)
OKLCHoklch(52.87% 0.189 325.6)
XYZxyz(22.4553, 12.8213, 36.8820)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F37A5 #3DA537
analogous
#6837A5 #9F37A5 #A53774
triadic
#9F37A5 #A59F37 #37A59F
tetradic
#9F37A5 #A56837 #3DA537 #3774A5
square
#9F37A5 #A56837 #3DA537 #3774A5
split-complementary
#9F37A5 #74A537 #37A568
monochromatic
#471849 #732877 #9F37A5 #C053C6 #D181D5

Accessibility & contrast

On white

5.89
#9F37A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9F37A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F37A5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F37A5#FFFFFF#000000##FFFFFF
##9F37A51.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225CA8
Deuteranopia (green-blind)
#4D69A2
Tritanopia (blue-blind)
#A34869
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f37a5;
/* rgb */ color: rgb(159, 55, 165);
/* oklch */ color: oklch(52.9% 0.189 325.6);
Tailwind
colors: {
  custom: {
    50: '#bf76c0',
    500: '#9f37a5',
    950: '#000000',
  },
}
SCSS
$custom: #9f37a5;
$custom-light: #bf76c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f37a5",
  "rgb": {
    "r": 159,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 296.727,
    "s": 50,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52874,
    "c": 0.18922,
    "h": 325.6
  },
  "luminance": 0.1282
}

Semantic roles & 50–950 ramp

primary
#9F37A5
secondary
#7DBF79
accent
#DA4E56
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F37A5

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

Preview Lab → · Contrast checker → · Palette generator →

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