#8B27AC#8B27AC

#8B27AC is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.0% C 0.205 H 316.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8B27AC
RGBrgb(139, 39, 172)
HSLhsl(285, 63%, 41%)
HSVhsv(285, 77%, 67%)
CMYKcmyk(19.2%, 77.3%, 0%, 32.5%)
CIE-LABlab(37.70, 59.96, -50.59)
CIE-LCHlch(37.70, 78.46, 319.85°)
OKLaboklab(48.97% 0.1477 -0.1426)
OKLCHoklch(48.97% 0.205 316)
XYZxyz(18.8182, 9.9193, 39.9451)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27AC #48AC27
analogous
#4927AC #8B27AC #AC278B
triadic
#8B27AC #AC8B27 #27AC8B
tetradic
#8B27AC #AC4927 #48AC27 #278BAC
square
#8B27AC #AC4927 #48AC27 #278BAC
split-complementary
#8B27AC #8BAC27 #27AC49
monochromatic
#3A1048 #631C7A #8B27AC #AE3DD3 #C36FDE

Accessibility & contrast

On white

7.04
#8B27AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B27AC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27AC#FFFFFF#000000##FFFFFF
##8B27AC1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#255BA9
Tritanopia (blue-blind)
#894569
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b27ac;
/* rgb */ color: rgb(139, 39, 172);
/* oklch */ color: oklch(49.0% 0.205 316.0);
Tailwind
colors: {
  custom: {
    50: '#b16dc5',
    500: '#8b27ac',
    950: '#000000',
  },
}
SCSS
$custom: #8b27ac;
$custom-light: #b16dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27ac",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 285.113,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48969,
    "c": 0.2053,
    "h": 316
  },
  "luminance": 0.09919
}

Semantic roles & 50–950 ramp

primary
#8B27AC
secondary
#80C56A
accent
#E6426B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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