#9F1F9D#9F1F9D

#9F1F9D is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.209 H 328.9°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#9F1F9D
RGBrgb(159, 31, 157)
HSLhsl(301, 67%, 37%)
HSVhsv(301, 81%, 62%)
CMYKcmyk(0%, 80.5%, 1.3%, 37.6%)
CIE-LABlab(39.22, 63.65, -38.97)
CIE-LCHlch(39.22, 74.63, 328.53°)
OKLaboklab(50.38% 0.1787 -0.108)
OKLCHoklch(50.38% 0.209 328.9)
XYZxyz(20.8737, 10.7868, 32.8744)
Luminance0.1079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F9D #1F9F21
analogous
#611F9F #9F1F9D #9F1F5D
triadic
#9F1F9D #9D9F1F #1F9D9F
tetradic
#9F1F9D #9F611F #1F9F21 #1F5D9F
square
#9F1F9D #9F611F #1F9F21 #1F5D9F
split-complementary
#9F1F9D #5D9F1F #1F9F61
monochromatic
#390B38 #6C156A #9F1F9D #D229D0 #DF5ADD

Accessibility & contrast

On white

6.65
#9F1F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9F1F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F9D
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F9D#FFFFFF#000000##FFFFFF
##9F1F9D1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#47629A
Tritanopia (blue-blind)
#A5355F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f1f9d;
/* rgb */ color: rgb(159, 31, 157);
/* oklch */ color: oklch(50.4% 0.209 328.9);
Tailwind
colors: {
  custom: {
    50: '#bf6cba',
    500: '#9f1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f9d;
$custom-light: #bf6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f9d",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 300.938,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.50384,
    "c": 0.2088,
    "h": 328.9
  },
  "luminance": 0.10785
}

Semantic roles & 50–950 ramp

primary
#9F1F9D
secondary
#57C359
accent
#EA403E
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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