#9F1F91#9F1F91

#9F1F91 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.7% C 0.200 H 333.3°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#9F1F91
RGBrgb(159, 31, 145)
HSLhsl(307, 67%, 37%)
HSVhsv(307, 81%, 62%)
CMYKcmyk(0%, 80.5%, 8.8%, 37.6%)
CIE-LABlab(38.55, 61.78, -32.75)
CIE-LCHlch(38.55, 69.92, 332.08°)
OKLaboklab(49.69% 0.1787 -0.09)
OKLCHoklch(49.69% 0.2 333.3)
XYZxyz(19.8990, 10.3970, 27.7414)
Luminance0.1040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F91 #1F9F2D
analogous
#6D1F9F #9F1F91 #9F1F51
triadic
#9F1F91 #919F1F #1F919F
tetradic
#9F1F91 #9F6D1F #1F9F2D #1F519F
square
#9F1F91 #9F6D1F #1F9F2D #1F519F
split-complementary
#9F1F91 #519F1F #1F9F6D
monochromatic
#390B34 #6C1562 #9F1F91 #D229C0 #DF5AD0

Accessibility & contrast

On white

6.82
#9F1F91 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9F1F91 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F91
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F91#FFFFFF#000000##FFFFFF
##9F1F911.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184F94
Deuteranopia (green-blind)
#4D618E
Tritanopia (blue-blind)
#A62E58
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f1f91;
/* rgb */ color: rgb(159, 31, 145);
/* oklch */ color: oklch(49.7% 0.200 333.3);
Tailwind
colors: {
  custom: {
    50: '#bf6bb1',
    500: '#9f1f91',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f91;
$custom-light: #bf6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f91",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 306.563,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49687,
    "c": 0.20011,
    "h": 333.3
  },
  "luminance": 0.10395
}

Semantic roles & 50–950 ramp

primary
#9F1F91
secondary
#57C363
accent
#EA503E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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