#8B27BB#8B27BB

#8B27BB is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.1% C 0.219 H 311.5°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8B27BB
RGBrgb(139, 39, 187)
HSLhsl(281, 65%, 44%)
HSVhsv(281, 79%, 73%)
CMYKcmyk(25.7%, 79.1%, 0%, 26.7%)
CIE-LABlab(38.77, 62.98, -57.74)
CIE-LCHlch(38.77, 85.44, 317.49°)
OKLaboklab(50.07% 0.1449 -0.1636)
OKLCHoklch(50.07% 0.219 311.5)
XYZxyz(20.3409, 10.5284, 47.9647)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27BB #57BB27
analogous
#4127BB #8B27BB #BB27A1
triadic
#8B27BB #BB8B27 #27BB8B
tetradic
#8B27BB #BB4127 #57BB27 #27A1BB
square
#8B27BB #BB4127 #57BB27 #27A1BB
split-complementary
#8B27BB #A1BB27 #27BB41
monochromatic
#401256 #651C88 #8B27BB #A947D9 #C179E3

Accessibility & contrast

On white

6.76
#8B27BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8B27BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B27BB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27BB#FFFFFF#000000##FFFFFF
##8B27BB1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#854C71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b27bb;
/* rgb */ color: rgb(139, 39, 187);
/* oklch */ color: oklch(50.1% 0.219 311.5);
Tailwind
colors: {
  custom: {
    50: '#b26dd0',
    500: '#8b27bb',
    950: '#000000',
  },
}
SCSS
$custom: #8b27bb;
$custom-light: #b26dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27bb",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 280.541,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50066,
    "c": 0.21857,
    "h": 311.5
  },
  "luminance": 0.10528
}

Semantic roles & 50–950 ramp

primary
#8B27BB
secondary
#8FCB73
accent
#E83F76
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B27BB

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

Preview Lab → · Contrast checker → · Palette generator →

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