#9B1F8F#9B1F8F

#9B1F8F is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.197 H 332.6°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9B1F8F
RGBrgb(155, 31, 143)
HSLhsl(306, 67%, 36%)
HSVhsv(306, 80%, 61%)
CMYKcmyk(0%, 80%, 7.7%, 39.2%)
CIE-LABlab(37.72, 60.61, -32.87)
CIE-LCHlch(37.72, 68.95, 331.53°)
OKLaboklab(48.93% 0.1747 -0.0904)
OKLCHoklch(48.93% 0.197 332.6)
XYZxyz(18.9656, 9.9333, 26.8997)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1F8F #1F9B2B
analogous
#691F9B #9B1F8F #9B1F51
triadic
#9B1F8F #8F9B1F #1F8F9B
tetradic
#9B1F8F #9B691F #1F9B2B #1F519B
square
#9B1F8F #9B691F #1F9B2B #1F519B
split-complementary
#9B1F8F #519B1F #1F9B69
monochromatic
#350B31 #681560 #9B1F8F #CE29BE #DD57D0

Accessibility & contrast

On white

7.03
#9B1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9B1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B1F8F
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1F8F#FFFFFF#000000##FFFFFF
##9B1F8F1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164E92
Deuteranopia (green-blind)
#4B5F8C
Tritanopia (blue-blind)
#A22E57
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b1f8f;
/* rgb */ color: rgb(155, 31, 143);
/* oklch */ color: oklch(48.9% 0.197 332.6);
Tailwind
colors: {
  custom: {
    50: '#bc6bb0',
    500: '#9b1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #9b1f8f;
$custom-light: #bc6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1f8f",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 305.806,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4893,
    "c": 0.19667,
    "h": 332.6
  },
  "luminance": 0.09932
}

Semantic roles & 50–950 ramp

primary
#9B1F8F
secondary
#55C15F
accent
#EA4F3E
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #9B1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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