#9F1F98#9F1F98

#9F1F98 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.205 H 330.7°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#9F1F98
RGBrgb(159, 31, 152)
HSLhsl(303, 67%, 37%)
HSVhsv(303, 81%, 62%)
CMYKcmyk(0%, 80.5%, 4.4%, 37.6%)
CIE-LABlab(38.93, 62.86, -36.40)
CIE-LCHlch(38.93, 72.64, 329.93°)
OKLaboklab(50.09% 0.1788 -0.1005)
OKLCHoklch(50.09% 0.205 330.7)
XYZxyz(20.4555, 10.6196, 30.6721)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F98 #1F9F26
analogous
#661F9F #9F1F98 #9F1F58
triadic
#9F1F98 #989F1F #1F989F
tetradic
#9F1F98 #9F661F #1F9F26 #1F589F
square
#9F1F98 #9F661F #1F9F26 #1F589F
split-complementary
#9F1F98 #589F1F #1F9F66
monochromatic
#390B36 #6C1567 #9F1F98 #D229C9 #DF5AD7

Accessibility & contrast

On white

6.72
#9F1F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F1F98
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F98#FFFFFF#000000##FFFFFF
##9F1F981.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A519B
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#A5325C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f1f98;
/* rgb */ color: rgb(159, 31, 152);
/* oklch */ color: oklch(50.1% 0.205 330.7);
Tailwind
colors: {
  custom: {
    50: '#bf6cb7',
    500: '#9f1f98',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f98;
$custom-light: #bf6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f98",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 303.281,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.50088,
    "c": 0.20513,
    "h": 330.7
  },
  "luminance": 0.10618
}

Semantic roles & 50–950 ramp

primary
#9F1F98
secondary
#57C35D
accent
#EA473E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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