#9B1F8B#9B1F8B

#9B1F8B is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.194 H 334.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#9B1F8B
RGBrgb(155, 31, 139)
HSLhsl(308, 67%, 36%)
HSVhsv(308, 80%, 61%)
CMYKcmyk(0%, 80%, 10.3%, 39.2%)
CIE-LABlab(37.51, 60.01, -30.75)
CIE-LCHlch(37.51, 67.43, 332.86°)
OKLaboklab(48.71% 0.1745 -0.0843)
OKLCHoklch(48.71% 0.194 334.2)
XYZxyz(18.6680, 9.8143, 25.3323)
Luminance0.0981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1F8B #1F9B2F
analogous
#6D1F9B #9B1F8B #9B1F4D
triadic
#9B1F8B #8B9B1F #1F8B9B
tetradic
#9B1F8B #9B6D1F #1F9B2F #1F4D9B
square
#9B1F8B #9B6D1F #1F9B2F #1F4D9B
split-complementary
#9B1F8B #4D9B1F #1F9B6D
monochromatic
#350B30 #68155D #9B1F8B #CE29B9 #DD57CC

Accessibility & contrast

On white

7.09
#9B1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9B1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B1F8B
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1F8B#FFFFFF#000000##FFFFFF
##9B1F8B1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4D8E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#A32C54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9b1f8b;
/* rgb */ color: rgb(155, 31, 139);
/* oklch */ color: oklch(48.7% 0.194 334.2);
Tailwind
colors: {
  custom: {
    50: '#bc6bad',
    500: '#9b1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #9b1f8b;
$custom-light: #bc6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1f8b",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 307.742,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48706,
    "c": 0.19381,
    "h": 334.2
  },
  "luminance": 0.09813
}

Semantic roles & 50–950 ramp

primary
#9B1F8B
secondary
#55C163
accent
#EA543E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9B1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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