#8B1F9C#8B1F9C

#8B1F9C is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.199 H 321.7°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8B1F9C
RGBrgb(139, 31, 156)
HSLhsl(292, 67%, 37%)
HSVhsv(292, 80%, 61%)
CMYKcmyk(10.9%, 80.1%, 0%, 38.8%)
CIE-LABlab(35.73, 59.48, -44.13)
CIE-LCHlch(35.73, 74.06, 323.43°)
OKLaboklab(47.24% 0.1565 -0.1236)
OKLCHoklch(47.24% 0.199 321.7)
XYZxyz(17.1375, 8.8702, 32.2555)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F9C #309C1F
analogous
#4D1F9C #8B1F9C #9C1F6F
triadic
#8B1F9C #9C8B1F #1F9C8B
tetradic
#8B1F9C #9C4D1F #309C1F #1F6F9C
square
#8B1F9C #9C4D1F #309C1F #1F6F9C
split-complementary
#8B1F9C #6F9C1F #1F9C4D
monochromatic
#300B36 #5E1569 #8B1F9C #B829CF #CC58DE

Accessibility & contrast

On white

7.57
#8B1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8B1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F9C
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F9C#FFFFFF#000000##FFFFFF
##8B1F9C1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#315899
Tritanopia (blue-blind)
#8C395E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b1f9c;
/* rgb */ color: rgb(139, 31, 156);
/* oklch */ color: oklch(47.2% 0.199 321.7);
Tailwind
colors: {
  custom: {
    50: '#b169ba',
    500: '#8b1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f9c;
$custom-light: #b169ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f9c",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 291.84,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47238,
    "c": 0.19944,
    "h": 321.7
  },
  "luminance": 0.08869
}

Semantic roles & 50–950 ramp

primary
#8B1F9C
secondary
#64C155
accent
#EA3E55
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8B1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

#8B1F9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva