#9F1F97#9F1F97

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

Color values

HEX#9F1F97
RGBrgb(159, 31, 151)
HSLhsl(304, 67%, 37%)
HSVhsv(304, 81%, 62%)
CMYKcmyk(0%, 80.5%, 5%, 37.6%)
CIE-LABlab(38.88, 62.70, -35.88)
CIE-LCHlch(38.88, 72.24, 330.22°)
OKLaboklab(50.03% 0.1788 -0.099)
OKLCHoklch(50.03% 0.204 331)
XYZxyz(20.3740, 10.5870, 30.2426)
Luminance0.1058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F97 #1F9F27
analogous
#671F9F #9F1F97 #9F1F57
triadic
#9F1F97 #979F1F #1F979F
tetradic
#9F1F97 #9F671F #1F9F27 #1F579F
square
#9F1F97 #9F671F #1F9F27 #1F579F
split-complementary
#9F1F97 #579F1F #1F9F67
monochromatic
#390B36 #6C1566 #9F1F97 #D229C8 #DF5AD6

Accessibility & contrast

On white

6.74
#9F1F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9F1F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F97
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F97#FFFFFF#000000##FFFFFF
##9F1F971.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C509A
Deuteranopia (green-blind)
#4A6294
Tritanopia (blue-blind)
#A6315B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f1f97;
/* rgb */ color: rgb(159, 31, 151);
/* oklch */ color: oklch(50.0% 0.204 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf6cb6',
    500: '#9f1f97',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f97;
$custom-light: #bf6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f97",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 303.75,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.5003,
    "c": 0.2044,
    "h": 331
  },
  "luminance": 0.10585
}

Semantic roles & 50–950 ramp

primary
#9F1F97
secondary
#57C35E
accent
#EA483E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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