#8B27AB#8B27AB

#8B27AB is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.9% C 0.204 H 316.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8B27AB
RGBrgb(139, 39, 171)
HSLhsl(285, 63%, 41%)
HSVhsv(285, 77%, 67%)
CMYKcmyk(18.7%, 77.2%, 0%, 32.9%)
CIE-LABlab(37.63, 59.77, -50.11)
CIE-LCHlch(37.63, 77.99, 320.02°)
OKLaboklab(48.9% 0.1478 -0.1412)
OKLCHoklch(48.9% 0.204 316.3)
XYZxyz(18.7225, 9.8810, 39.4412)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27AB #47AB27
analogous
#4927AB #8B27AB #AB2789
triadic
#8B27AB #AB8B27 #27AB8B
tetradic
#8B27AB #AB4927 #47AB27 #2789AB
square
#8B27AB #AB4927 #47AB27 #2789AB
split-complementary
#8B27AB #89AB27 #27AB49
monochromatic
#3A1047 #621C79 #8B27AB #AE3DD3 #C36EDE

Accessibility & contrast

On white

7.06
#8B27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8B27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B27AB
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27AB#FFFFFF#000000##FFFFFF
##8B27AB1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#265BA8
Tritanopia (blue-blind)
#894568
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b27ab;
/* rgb */ color: rgb(139, 39, 171);
/* oklch */ color: oklch(48.9% 0.204 316.3);
Tailwind
colors: {
  custom: {
    50: '#b16dc5',
    500: '#8b27ab',
    950: '#000000',
  },
}
SCSS
$custom: #8b27ab;
$custom-light: #b16dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27ab",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 285.455,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48898,
    "c": 0.20443,
    "h": 316.3
  },
  "luminance": 0.0988
}

Semantic roles & 50–950 ramp

primary
#8B27AB
secondary
#7FC569
accent
#E6426A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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