#8B1BAF#8B1BAF

#8B1BAF is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.3% C 0.218 H 315.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8B1BAF
RGBrgb(139, 27, 175)
HSLhsl(285, 73%, 40%)
HSVhsv(285, 85%, 69%)
CMYKcmyk(20.6%, 84.6%, 0%, 31.4%)
CIE-LABlab(36.68, 64.11, -54.02)
CIE-LCHlch(36.68, 83.83, 319.88°)
OKLaboklab(48.33% 0.1561 -0.1526)
OKLCHoklch(48.33% 0.218 315.6)
XYZxyz(18.7760, 9.3687, 41.3684)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1BAF #3FAF1B
analogous
#411BAF #8B1BAF #AF1B89
triadic
#8B1BAF #AF8B1B #1BAF8B
tetradic
#8B1BAF #AF411B #3FAF1B #1B89AF
square
#8B1BAF #AF411B #3FAF1B #1B89AF
split-complementary
#8B1BAF #89AF1B #1BAF41
monochromatic
#370B45 #61137A #8B1BAF #B229DE #C55EE6

Accessibility & contrast

On white

7.31
#8B1BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8B1BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1BAF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1BAF#FFFFFF#000000##FFFFFF
##8B1BAF1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#1359AC
Tritanopia (blue-blind)
#884168
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b1baf;
/* rgb */ color: rgb(139, 27, 175);
/* oklch */ color: oklch(48.3% 0.218 315.6);
Tailwind
colors: {
  custom: {
    50: '#b269c8',
    500: '#8b1baf',
    950: '#000000',
  },
}
SCSS
$custom: #8b1baf;
$custom-light: #b269c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1baf",
  "rgb": {
    "r": 139,
    "g": 27,
    "b": 175
  },
  "hsl": {
    "h": 285.405,
    "s": 73.267,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48326,
    "c": 0.2183,
    "h": 315.6
  },
  "luminance": 0.09368
}

Semantic roles & 50–950 ramp

primary
#8B1BAF
secondary
#76CA5B
accent
#F03865
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B1BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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