#9F3A9D#9F3A9D

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

Color values

HEX#9F3A9D
RGBrgb(159, 58, 157)
HSLhsl(301, 47%, 43%)
HSVhsv(301, 64%, 62%)
CMYKcmyk(0%, 63.5%, 1.3%, 37.6%)
CIE-LABlab(42.51, 54.31, -33.75)
CIE-LCHlch(42.51, 63.95, 328.14°)
OKLaboklab(52.75% 0.1522 -0.0931)
OKLCHoklch(52.75% 0.178 328.5)
XYZxyz(21.8967, 12.8328, 33.2154)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3A9D #3A9F3C
analogous
#6E3A9F #9F3A9D #9F3A6B
triadic
#9F3A9D #9D9F3A #3A9D9F
tetradic
#9F3A9D #9F6E3A #3A9F3C #3A6B9F
square
#9F3A9D #9F6E3A #3A9F3C #3A6B9F
split-complementary
#9F3A9D #6B9F3A #3A9F6E
monochromatic
#451944 #722A71 #9F3A9D #C155BF #D182D0

Accessibility & contrast

On white

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

On black

3.57
#9F3A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9F3A9D#FFFFFF#000000##FFFFFF
##9F3A9D1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5CA0
Deuteranopia (green-blind)
#53699A
Tritanopia (blue-blind)
#A44666
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f3a9d;
/* rgb */ color: rgb(159, 58, 157);
/* oklch */ color: oklch(52.7% 0.178 328.5);
Tailwind
colors: {
  custom: {
    50: '#be78ba',
    500: '#9f3a9d',
    950: '#000000',
  },
}
SCSS
$custom: #9f3a9d;
$custom-light: #be78ba;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3a9d",
  "rgb": {
    "r": 159,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 301.188,
    "s": 46.544,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52748,
    "c": 0.17838,
    "h": 328.5
  },
  "luminance": 0.12831
}

Semantic roles & 50–950 ramp

primary
#9F3A9D
secondary
#7ABB7B
accent
#D65452
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9F3A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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