#9F339A#9F339A

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

Color values

HEX#9F339A
RGBrgb(159, 51, 154)
HSLhsl(303, 51%, 41%)
HSVhsv(303, 68%, 62%)
CMYKcmyk(0%, 67.9%, 3.1%, 37.6%)
CIE-LABlab(41.33, 56.65, -33.81)
CIE-LCHlch(41.33, 65.97, 329.17°)
OKLaboklab(51.84% 0.1601 -0.0932)
OKLCHoklch(51.84% 0.185 329.8)
XYZxyz(21.3145, 12.0732, 31.7733)
Luminance0.1207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F339A #339F38
analogous
#6E339F #9F339A #9F3364
triadic
#9F339A #9A9F33 #339A9F
tetradic
#9F339A #9F6E33 #339F38 #33649F
square
#9F339A #9F6E33 #339F38 #33649F
split-complementary
#9F339A #649F33 #339F6E
monochromatic
#421540 #71246D #9F339A #C54ABF #D479D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F339A#FFFFFF#000000##FFFFFF
##9F339A1.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)
#28589D
Deuteranopia (green-blind)
#516797
Tritanopia (blue-blind)
#A54062
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f339a;
/* rgb */ color: rgb(159, 51, 154);
/* oklch */ color: oklch(51.8% 0.185 329.8);
Tailwind
colors: {
  custom: {
    50: '#bf74b8',
    500: '#9f339a',
    950: '#000000',
  },
}
SCSS
$custom: #9f339a;
$custom-light: #bf74b8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f339a",
  "rgb": {
    "r": 159,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 302.778,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51844,
    "c": 0.18522,
    "h": 329.8
  },
  "luminance": 0.12072
}

Semantic roles & 50–950 ramp

primary
#9F339A
secondary
#71BC75
accent
#DB534D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #9F339A

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

Preview Lab → · Contrast checker → · Palette generator →

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