#8B1F9D#8B1F9D

#8B1F9D is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.3% C 0.200 H 321.3°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8B1F9D
RGBrgb(139, 31, 157)
HSLhsl(291, 67%, 37%)
HSVhsv(291, 80%, 62%)
CMYKcmyk(11.5%, 80.3%, 0%, 38.4%)
CIE-LABlab(35.80, 59.66, -44.63)
CIE-LCHlch(35.80, 74.51, 323.20°)
OKLaboklab(47.31% 0.1564 -0.1251)
OKLCHoklch(47.31% 0.2 321.3)
XYZxyz(17.2226, 8.9042, 32.7033)
Luminance0.0890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F9D #319D1F
analogous
#4C1F9D #8B1F9D #9D1F70
triadic
#8B1F9D #9D8B1F #1F9D8B
tetradic
#8B1F9D #9D4C1F #319D1F #1F709D
square
#8B1F9D #9D4C1F #319D1F #1F709D
split-complementary
#8B1F9D #709D1F #1F9D4C
monochromatic
#310B37 #5E156A #8B1F9D #B829D0 #CB58DE

Accessibility & contrast

On white

7.55
#8B1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8B1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F9D
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F9D#FFFFFF#000000##FFFFFF
##8B1F9D1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#30589A
Tritanopia (blue-blind)
#8C3A5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b1f9d;
/* rgb */ color: rgb(139, 31, 157);
/* oklch */ color: oklch(47.3% 0.200 321.3);
Tailwind
colors: {
  custom: {
    50: '#b169bb',
    500: '#8b1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f9d;
$custom-light: #b169bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f9d",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 291.429,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47306,
    "c": 0.20025,
    "h": 321.3
  },
  "luminance": 0.08903
}

Semantic roles & 50–950 ramp

primary
#8B1F9D
secondary
#65C256
accent
#EA3E56
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8B1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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