#9B1F87#9B1F87

#9B1F87 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.191 H 335.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9B1F87
RGBrgb(155, 31, 135)
HSLhsl(310, 67%, 36%)
HSVhsv(310, 80%, 61%)
CMYKcmyk(0%, 80%, 12.9%, 39.2%)
CIE-LABlab(37.30, 59.41, -28.62)
CIE-LCHlch(37.30, 65.95, 334.28°)
OKLaboklab(48.49% 0.1743 -0.0782)
OKLCHoklch(48.49% 0.191 335.8)
XYZxyz(18.3810, 9.6995, 23.8211)
Luminance0.0970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1F87 #1F9B33
analogous
#711F9B #9B1F87 #9B1F49
triadic
#9B1F87 #879B1F #1F879B
tetradic
#9B1F87 #9B711F #1F9B33 #1F499B
square
#9B1F87 #9B711F #1F9B33 #1F499B
split-complementary
#9B1F87 #499B1F #1F9B71
monochromatic
#350B2E #68155B #9B1F87 #CE29B3 #DD57C8

Accessibility & contrast

On white

7.14
#9B1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9B1F87
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1F87#FFFFFF#000000##FFFFFF
##9B1F871.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C8A
Deuteranopia (green-blind)
#4E5E84
Tritanopia (blue-blind)
#A32A52
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9b1f87;
/* rgb */ color: rgb(155, 31, 135);
/* oklch */ color: oklch(48.5% 0.191 335.8);
Tailwind
colors: {
  custom: {
    50: '#bc6aaa',
    500: '#9b1f87',
    950: '#000000',
  },
}
SCSS
$custom: #9b1f87;
$custom-light: #bc6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1f87",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 309.677,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48488,
    "c": 0.19102,
    "h": 335.8
  },
  "luminance": 0.09698
}

Semantic roles & 50–950 ramp

primary
#9B1F87
secondary
#55C166
accent
#EA5A3E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9B1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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