#9F1F8F#9F1F8F

#9F1F8F is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.6% C 0.199 H 334.1°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9F1F8F
RGBrgb(159, 31, 143)
HSLhsl(308, 67%, 37%)
HSVhsv(308, 81%, 62%)
CMYKcmyk(0%, 80.5%, 10.1%, 37.6%)
CIE-LABlab(38.44, 61.48, -31.69)
CIE-LCHlch(38.44, 69.17, 332.73°)
OKLaboklab(49.58% 0.1787 -0.0869)
OKLCHoklch(49.58% 0.199 334.1)
XYZxyz(19.7462, 10.3358, 26.9363)
Luminance0.1033 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F8F #1F9F2F
analogous
#6F1F9F #9F1F8F #9F1F4F
triadic
#9F1F8F #8F9F1F #1F8F9F
tetradic
#9F1F8F #9F6F1F #1F9F2F #1F4F9F
square
#9F1F8F #9F6F1F #1F9F2F #1F4F9F
split-complementary
#9F1F8F #4F9F1F #1F9F6F
monochromatic
#390B33 #6C1561 #9F1F8F #D229BD #DF5ACE

Accessibility & contrast

On white

6.85
#9F1F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9F1F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F8F
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F8F#FFFFFF#000000##FFFFFF
##9F1F8F1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4F92
Deuteranopia (green-blind)
#4E618C
Tritanopia (blue-blind)
#A72D57
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1f8f;
/* rgb */ color: rgb(159, 31, 143);
/* oklch */ color: oklch(49.6% 0.199 334.1);
Tailwind
colors: {
  custom: {
    50: '#bf6bb0',
    500: '#9f1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f8f;
$custom-light: #bf6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f8f",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 307.5,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49576,
    "c": 0.1987,
    "h": 334.1
  },
  "luminance": 0.10334
}

Semantic roles & 50–950 ramp

primary
#9F1F8F
secondary
#57C365
accent
#EA533E
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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