#9B1F8D#9B1F8D

#9B1F8D is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.195 H 333.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#9B1F8D
RGBrgb(155, 31, 141)
HSLhsl(307, 67%, 36%)
HSVhsv(307, 80%, 61%)
CMYKcmyk(0%, 80%, 9%, 39.2%)
CIE-LABlab(37.61, 60.31, -31.81)
CIE-LCHlch(37.61, 68.19, 332.19°)
OKLaboklab(48.82% 0.1746 -0.0874)
OKLCHoklch(48.82% 0.195 333.4)
XYZxyz(18.8154, 9.8733, 26.1089)
Luminance0.0987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1F8D #1F9B2D
analogous
#6B1F9B #9B1F8D #9B1F4F
triadic
#9B1F8D #8D9B1F #1F8D9B
tetradic
#9B1F8D #9B6B1F #1F9B2D #1F4F9B
square
#9B1F8D #9B6B1F #1F9B2D #1F4F9B
split-complementary
#9B1F8D #4F9B1F #1F9B6B
monochromatic
#350B30 #68155F #9B1F8D #CE29BB #DD57CE

Accessibility & contrast

On white

7.06
#9B1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#9B1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B1F8D
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1F8D#FFFFFF#000000##FFFFFF
##9B1F8D1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194D90
Deuteranopia (green-blind)
#4C5F8A
Tritanopia (blue-blind)
#A22D56
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9b1f8d;
/* rgb */ color: rgb(155, 31, 141);
/* oklch */ color: oklch(48.8% 0.195 333.4);
Tailwind
colors: {
  custom: {
    50: '#bc6baf',
    500: '#9b1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9b1f8d;
$custom-light: #bc6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1f8d",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 306.774,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48817,
    "c": 0.19523,
    "h": 333.4
  },
  "luminance": 0.09872
}

Semantic roles & 50–950 ramp

primary
#9B1F8D
secondary
#55C161
accent
#EA523E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9B1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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