#9F1B97#9F1B97

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

Color values

HEX#9F1B97
RGBrgb(159, 27, 151)
HSLhsl(304, 71%, 36%)
HSVhsv(304, 83%, 62%)
CMYKcmyk(0%, 83%, 5%, 37.6%)
CIE-LABlab(38.53, 63.69, -36.42)
CIE-LCHlch(38.53, 73.37, 330.24°)
OKLaboklab(49.79% 0.1817 -0.1006)
OKLCHoklch(49.79% 0.208 331)
XYZxyz(20.2759, 10.3909, 30.2099)
Luminance0.1039 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1B97 #1B9F23
analogous
#651B9F #9F1B97 #9F1B55
triadic
#9F1B97 #979F1B #1B979F
tetradic
#9F1B97 #9F651B #1B9F23 #1B559F
square
#9F1B97 #9F651B #1B9F23 #1B559F
split-complementary
#9F1B97 #559F1B #1B9F65
monochromatic
#360934 #6B1265 #9F1B97 #D324C9 #E253D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F1B97#FFFFFF#000000##FFFFFF
##9F1B971.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)
#034F9A
Deuteranopia (green-blind)
#496194
Tritanopia (blue-blind)
#A62F5A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f1b97;
/* rgb */ color: rgb(159, 27, 151);
/* oklch */ color: oklch(49.8% 0.208 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf6ab6',
    500: '#9f1b97',
    950: '#000000',
  },
}
SCSS
$custom: #9f1b97;
$custom-light: #bf6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1b97",
  "rgb": {
    "r": 159,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 303.636,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49787,
    "c": 0.20765,
    "h": 331
  },
  "luminance": 0.10389
}

Semantic roles & 50–950 ramp

primary
#9F1B97
secondary
#51C558
accent
#EE453A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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