#9F1F96#9F1F96

#9F1F96 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.0% C 0.204 H 331.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#9F1F96
RGBrgb(159, 31, 150)
HSLhsl(304, 67%, 37%)
HSVhsv(304, 81%, 62%)
CMYKcmyk(0%, 80.5%, 5.7%, 37.6%)
CIE-LABlab(38.82, 62.55, -35.36)
CIE-LCHlch(38.82, 71.85, 330.52°)
OKLaboklab(49.97% 0.1788 -0.0975)
OKLCHoklch(49.97% 0.204 331.4)
XYZxyz(20.2931, 10.5546, 29.8167)
Luminance0.1055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F96 #1F9F28
analogous
#681F9F #9F1F96 #9F1F56
triadic
#9F1F96 #969F1F #1F969F
tetradic
#9F1F96 #9F681F #1F9F28 #1F569F
square
#9F1F96 #9F681F #1F9F28 #1F569F
split-complementary
#9F1F96 #569F1F #1F9F68
monochromatic
#390B35 #6C1566 #9F1F96 #D229C6 #DF5AD5

Accessibility & contrast

On white

6.75
#9F1F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9F1F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F96
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F96#FFFFFF#000000##FFFFFF
##9F1F961.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5099
Deuteranopia (green-blind)
#4B6193
Tritanopia (blue-blind)
#A6315B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f1f96;
/* rgb */ color: rgb(159, 31, 150);
/* oklch */ color: oklch(50.0% 0.204 331.4);
Tailwind
colors: {
  custom: {
    50: '#bf6cb5',
    500: '#9f1f96',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f96;
$custom-light: #bf6cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f96",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 304.219,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49972,
    "c": 0.20368,
    "h": 331.4
  },
  "luminance": 0.10553
}

Semantic roles & 50–950 ramp

primary
#9F1F96
secondary
#57C35F
accent
#EA4A3E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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