#9F1F8A#9F1F8A

#9F1F8A is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.195 H 336.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9F1F8A
RGBrgb(159, 31, 138)
HSLhsl(310, 67%, 37%)
HSVhsv(310, 81%, 62%)
CMYKcmyk(0%, 80.5%, 13.2%, 37.6%)
CIE-LABlab(38.18, 60.75, -29.04)
CIE-LCHlch(38.18, 67.33, 334.45°)
OKLaboklab(49.3% 0.1784 -0.0793)
OKLCHoklch(49.3% 0.195 336)
XYZxyz(19.3758, 10.1877, 24.9858)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F8A #1F9F34
analogous
#741F9F #9F1F8A #9F1F4A
triadic
#9F1F8A #8A9F1F #1F8A9F
tetradic
#9F1F8A #9F741F #1F9F34 #1F4A9F
square
#9F1F8A #9F741F #1F9F34 #1F4A9F
split-complementary
#9F1F8A #4A9F1F #1F9F74
monochromatic
#390B31 #6C155E #9F1F8A #D229B6 #DF5AC9

Accessibility & contrast

On white

6.91
#9F1F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9F1F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F8A
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F8A#FFFFFF#000000##FFFFFF
##9F1F8A1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8D
Deuteranopia (green-blind)
#506187
Tritanopia (blue-blind)
#A72A54
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1f8a;
/* rgb */ color: rgb(159, 31, 138);
/* oklch */ color: oklch(49.3% 0.195 336.0);
Tailwind
colors: {
  custom: {
    50: '#bf6bac',
    500: '#9f1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f8a;
$custom-light: #bf6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f8a",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 309.844,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49304,
    "c": 0.19523,
    "h": 336
  },
  "luminance": 0.10186
}

Semantic roles & 50–950 ramp

primary
#9F1F8A
secondary
#57C369
accent
#EA5A3E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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