#9F319D#9F319D

#9F319D is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.8% C 0.190 H 328.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9F319D
RGBrgb(159, 49, 157)
HSLhsl(301, 53%, 41%)
HSVhsv(301, 69%, 62%)
CMYKcmyk(0%, 69.2%, 1.3%, 37.6%)
CIE-LABlab(41.22, 57.92, -35.79)
CIE-LCHlch(41.22, 68.09, 328.29°)
OKLaboklab(51.82% 0.1624 -0.0989)
OKLCHoklch(51.82% 0.19 328.7)
XYZxyz(21.4820, 12.0034, 33.0772)
Luminance0.1200 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F319D #319F33
analogous
#6A319F #9F319D #9F3166
triadic
#9F319D #9D9F31 #319D9F
tetradic
#9F319D #9F6A31 #319F33 #31669F
square
#9F319D #9F6A31 #319F33 #31669F
split-complementary
#9F319D #669F31 #319F6A
monochromatic
#411441 #70236F #9F319D #C647C4 #D576D3

Accessibility & contrast

On white

6.18
#9F319D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9F319D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F319D
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F319D#FFFFFF#000000##FFFFFF
##9F319D1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A0
Deuteranopia (green-blind)
#4E669A
Tritanopia (blue-blind)
#A44063
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f319d;
/* rgb */ color: rgb(159, 49, 157);
/* oklch */ color: oklch(51.8% 0.190 328.7);
Tailwind
colors: {
  custom: {
    50: '#bf73ba',
    500: '#9f319d',
    950: '#000000',
  },
}
SCSS
$custom: #9f319d;
$custom-light: #bf73ba;
$custom-dark: #000000;
JSON
{
  "hex": "#9f319d",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 301.091,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51817,
    "c": 0.19014,
    "h": 328.7
  },
  "luminance": 0.12002
}

Semantic roles & 50–950 ramp

primary
#9F319D
secondary
#6FBD70
accent
#DC4E4C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F319D

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

Preview Lab → · Contrast checker → · Palette generator →

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