#9B1B8B#9B1B8B

#9B1B8B is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.4% C 0.197 H 334.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9B1B8B
RGBrgb(155, 27, 139)
HSLhsl(308, 70%, 36%)
HSVhsv(308, 83%, 61%)
CMYKcmyk(0%, 82.6%, 10.3%, 39.2%)
CIE-LABlab(37.15, 61.04, -31.32)
CIE-LCHlch(37.15, 68.61, 332.84°)
OKLaboklab(48.45% 0.1776 -0.0859)
OKLCHoklch(48.45% 0.197 334.2)
XYZxyz(18.5699, 9.6182, 25.2996)
Luminance0.0962 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1B8B #1B9B2B
analogous
#6B1B9B #9B1B8B #9B1B4B
triadic
#9B1B8B #8B9B1B #1B8B9B
tetradic
#9B1B8B #9B6B1B #1B9B2B #1B4B9B
square
#9B1B8B #9B6B1B #1B9B2B #1B4B9B
split-complementary
#9B1B8B #4B9B1B #1B9B6B
monochromatic
#33092E #67125C #9B1B8B #CF24BA #E050CE

Accessibility & contrast

On white

7.18
#9B1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9B1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B1B8B
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1B8B#FFFFFF#000000##FFFFFF
##9B1B8B1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#4B5E88
Tritanopia (blue-blind)
#A32954
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9b1b8b;
/* rgb */ color: rgb(155, 27, 139);
/* oklch */ color: oklch(48.4% 0.197 334.2);
Tailwind
colors: {
  custom: {
    50: '#bc69ad',
    500: '#9b1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #9b1b8b;
$custom-light: #bc69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1b8b",
  "rgb": {
    "r": 155,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 307.5,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4845,
    "c": 0.19726,
    "h": 334.2
  },
  "luminance": 0.09617
}

Semantic roles & 50–950 ramp

primary
#9B1B8B
secondary
#4FC35D
accent
#ED513B
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9B1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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