#8B1F80#8B1F80

#8B1F80 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.177 H 332.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8B1F80
RGBrgb(139, 31, 128)
HSLhsl(306, 64%, 33%)
HSVhsv(306, 78%, 55%)
CMYKcmyk(0%, 77.7%, 7.9%, 45.5%)
CIE-LABlab(34.04, 54.70, -29.59)
CIE-LCHlch(34.04, 62.20, 331.59°)
OKLaboklab(45.49% 0.1576 -0.0813)
OKLCHoklch(45.49% 0.177 332.7)
XYZxyz(15.0338, 8.0287, 21.1758)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F80 #1F8B2A
analogous
#601F8B #8B1F80 #8B1F4A
triadic
#8B1F80 #808B1F #1F808B
tetradic
#8B1F80 #8B601F #1F8B2A #1F4A8B
square
#8B1F80 #8B601F #1F8B2A #1F4A8B
split-complementary
#8B1F80 #4A8B1F #1F8B60
monochromatic
#270924 #591452 #8B1F80 #BD2AAE #D74DC9

Accessibility & contrast

On white

8.06
#8B1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8B1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F80
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F80#FFFFFF#000000##FFFFFF
##8B1F801.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194683
Deuteranopia (green-blind)
#44557D
Tritanopia (blue-blind)
#912B4E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b1f80;
/* rgb */ color: rgb(139, 31, 128);
/* oklch */ color: oklch(45.5% 0.177 332.7);
Tailwind
colors: {
  custom: {
    50: '#b068a5',
    500: '#8b1f80',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f80;
$custom-light: #b068a5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f80",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 306.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.17737,
    "h": 332.7
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

primary
#8B1F80
secondary
#4CBA57
accent
#E75241
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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