#9B1F97#9B1F97

#9B1F97 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.203 H 329.6°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9B1F97
RGBrgb(155, 31, 151)
HSLhsl(302, 67%, 36%)
HSVhsv(302, 80%, 61%)
CMYKcmyk(0%, 80%, 2.6%, 39.2%)
CIE-LABlab(38.17, 61.87, -37.04)
CIE-LCHlch(38.17, 72.11, 329.09°)
OKLaboklab(49.4% 0.1747 -0.1025)
OKLCHoklch(49.4% 0.203 329.6)
XYZxyz(19.5934, 10.1845, 30.2060)
Luminance0.1018 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1F97 #1F9B23
analogous
#611F9B #9B1F97 #9B1F59
triadic
#9B1F97 #979B1F #1F979B
tetradic
#9B1F97 #9B611F #1F9B23 #1F599B
square
#9B1F97 #9B611F #1F9B23 #1F599B
split-complementary
#9B1F97 #599B1F #1F9B61
monochromatic
#350B34 #681565 #9B1F97 #CE29C9 #DD57D9

Accessibility & contrast

On white

6.92
#9B1F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9B1F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B1F97
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1F97#FFFFFF#000000##FFFFFF
##9B1F971.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034F9A
Deuteranopia (green-blind)
#465F94
Tritanopia (blue-blind)
#A1335B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9b1f97;
/* rgb */ color: rgb(155, 31, 151);
/* oklch */ color: oklch(49.4% 0.203 329.6);
Tailwind
colors: {
  custom: {
    50: '#bc6bb6',
    500: '#9b1f97',
    950: '#000000',
  },
}
SCSS
$custom: #9b1f97;
$custom-light: #bc6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1f97",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 301.935,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49395,
    "c": 0.20252,
    "h": 329.6
  },
  "luminance": 0.10183
}

Semantic roles & 50–950 ramp

primary
#9B1F97
secondary
#55C158
accent
#EA443E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #9B1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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