#9F3497#9F3497

#9F3497 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.8% C 0.182 H 331.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9F3497
RGBrgb(159, 52, 151)
HSLhsl(304, 51%, 41%)
HSVhsv(304, 67%, 62%)
CMYKcmyk(0%, 67.3%, 5%, 37.6%)
CIE-LABlab(41.32, 55.76, -32.02)
CIE-LCHlch(41.32, 64.30, 330.13°)
OKLaboklab(51.78% 0.1588 -0.088)
OKLCHoklch(51.78% 0.182 331)
XYZxyz(21.1119, 12.0629, 30.4886)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3497 #349F3C
analogous
#72349F #9F3497 #9F3462
triadic
#9F3497 #979F34 #34979F
tetradic
#9F3497 #9F7234 #349F3C #34629F
square
#9F3497 #9F7234 #349F3C #34629F
split-complementary
#9F3497 #629F34 #349F72
monochromatic
#43163F #71256B #9F3497 #C44CBB #D37ACD

Accessibility & contrast

On white

6.15
#9F3497 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9F3497 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3497
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3497#FFFFFF#000000##FFFFFF
##9F34971.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589A
Deuteranopia (green-blind)
#536794
Tritanopia (blue-blind)
#A53F61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f3497;
/* rgb */ color: rgb(159, 52, 151);
/* oklch */ color: oklch(51.8% 0.182 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf74b6',
    500: '#9f3497',
    950: '#000000',
  },
}
SCSS
$custom: #9f3497;
$custom-light: #bf74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3497",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 304.486,
    "s": 50.711,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51782,
    "c": 0.18153,
    "h": 331
  },
  "luminance": 0.12061
}

Semantic roles & 50–950 ramp

primary
#9F3497
secondary
#73BC78
accent
#DA584E
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #9F3497

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

Preview Lab → · Contrast checker → · Palette generator →

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