#8A27BA#8A27BA

#8A27BA is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.9% C 0.217 H 311.4°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#8A27BA
RGBrgb(138, 39, 186)
HSLhsl(280, 65%, 44%)
HSVhsv(280, 79%, 73%)
CMYKcmyk(25.8%, 79%, 0%, 27.1%)
CIE-LABlab(38.55, 62.60, -57.52)
CIE-LCHlch(38.55, 85.01, 317.42°)
OKLaboklab(49.86% 0.1438 -0.163)
OKLCHoklch(49.86% 0.217 311.4)
XYZxyz(20.0680, 10.4000, 47.3951)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27BA #57BA27
analogous
#4127BA #8A27BA #BA27A1
triadic
#8A27BA #BA8A27 #27BA8A
tetradic
#8A27BA #BA4127 #57BA27 #27A1BA
square
#8A27BA #BA4127 #57BA27 #27A1BA
split-complementary
#8A27BA #A1BA27 #27BA41
monochromatic
#3F1255 #641C87 #8A27BA #A846D8 #C079E3

Accessibility & contrast

On white

6.82
#8A27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8A27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A27BA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27BA#FFFFFF#000000##FFFFFF
##8A27BA1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#844C71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a27ba;
/* rgb */ color: rgb(138, 39, 186);
/* oklch */ color: oklch(49.9% 0.217 311.4);
Tailwind
colors: {
  custom: {
    50: '#b16dd0',
    500: '#8a27ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a27ba;
$custom-light: #b16dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27ba",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 280.408,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49856,
    "c": 0.21738,
    "h": 311.4
  },
  "luminance": 0.10399
}

Semantic roles & 50–950 ramp

primary
#8A27BA
secondary
#8FCB72
accent
#E84077
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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