#8B27BA#8B27BA

#8B27BA is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.218 H 311.8°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8B27BA
RGBrgb(139, 39, 186)
HSLhsl(281, 65%, 44%)
HSVhsv(281, 79%, 73%)
CMYKcmyk(25.3%, 79%, 0%, 27.1%)
CIE-LABlab(38.70, 62.77, -57.27)
CIE-LCHlch(38.70, 84.97, 317.63°)
OKLaboklab(49.99% 0.1451 -0.1622)
OKLCHoklch(49.99% 0.218 311.8)
XYZxyz(20.2342, 10.4857, 47.4029)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27BA #56BA27
analogous
#4127BA #8B27BA #BA27A0
triadic
#8B27BA #BA8B27 #27BA8B
tetradic
#8B27BA #BA4127 #56BA27 #27A0BA
square
#8B27BA #BA4127 #56BA27 #27A0BA
split-complementary
#8B27BA #A0BA27 #27BA41
monochromatic
#3F1255 #651C87 #8B27BA #A946D8 #C179E3

Accessibility & contrast

On white

6.78
#8B27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8B27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B27BA
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27BA#FFFFFF#000000##FFFFFF
##8B27BA1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#015DB7
Tritanopia (blue-blind)
#854B71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b27ba;
/* rgb */ color: rgb(139, 39, 186);
/* oklch */ color: oklch(50.0% 0.218 311.8);
Tailwind
colors: {
  custom: {
    50: '#b26dd0',
    500: '#8b27ba',
    950: '#000000',
  },
}
SCSS
$custom: #8b27ba;
$custom-light: #b26dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27ba",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 280.816,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49991,
    "c": 0.21767,
    "h": 311.8
  },
  "luminance": 0.10485
}

Semantic roles & 50–950 ramp

primary
#8B27BA
secondary
#8ECB72
accent
#E84075
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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