#9B1B8D#9B1B8D

#9B1B8D is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.6% C 0.199 H 333.4°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#9B1B8D
RGBrgb(155, 27, 141)
HSLhsl(307, 70%, 36%)
HSVhsv(307, 83%, 61%)
CMYKcmyk(0%, 82.6%, 9%, 39.2%)
CIE-LABlab(37.26, 61.34, -32.38)
CIE-LCHlch(37.26, 69.36, 332.17°)
OKLaboklab(48.56% 0.1776 -0.089)
OKLCHoklch(48.56% 0.199 333.4)
XYZxyz(18.7174, 9.6772, 26.0762)
Luminance0.0968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1B8D #1B9B29
analogous
#691B9B #9B1B8D #9B1B4D
triadic
#9B1B8D #8D9B1B #1B8D9B
tetradic
#9B1B8D #9B691B #1B9B29 #1B4D9B
square
#9B1B8D #9B691B #1B9B29 #1B4D9B
split-complementary
#9B1B8D #4D9B1B #1B9B69
monochromatic
#33092E #67125E #9B1B8D #CF24BC #E050D1

Accessibility & contrast

On white

7.15
#9B1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9B1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B1B8D
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1B8D#FFFFFF#000000##FFFFFF
##9B1B8D1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#4A5E8A
Tritanopia (blue-blind)
#A22B55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9b1b8d;
/* rgb */ color: rgb(155, 27, 141);
/* oklch */ color: oklch(48.6% 0.199 333.4);
Tailwind
colors: {
  custom: {
    50: '#bc69af',
    500: '#9b1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #9b1b8d;
$custom-light: #bc69af;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1b8d",
  "rgb": {
    "r": 155,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 306.563,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48562,
    "c": 0.19867,
    "h": 333.4
  },
  "luminance": 0.09676
}

Semantic roles & 50–950 ramp

primary
#9B1B8D
secondary
#4FC35B
accent
#ED4E3B
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9B1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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