#8A27AB#8A27AB

#8A27AB is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.8% C 0.204 H 315.9°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8A27AB
RGBrgb(138, 39, 171)
HSLhsl(285, 63%, 41%)
HSVhsv(285, 77%, 67%)
CMYKcmyk(19.3%, 77.2%, 0%, 32.9%)
CIE-LABlab(37.47, 59.57, -50.37)
CIE-LCHlch(37.47, 78.01, 319.79°)
OKLaboklab(48.76% 0.1466 -0.142)
OKLCHoklch(48.76% 0.204 315.9)
XYZxyz(18.5563, 9.7953, 39.4334)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27AB #48AB27
analogous
#4827AB #8A27AB #AB278A
triadic
#8A27AB #AB8A27 #27AB8A
tetradic
#8A27AB #AB4827 #48AB27 #278AAB
square
#8A27AB #AB4827 #48AB27 #278AAB
split-complementary
#8A27AB #8AAB27 #27AB48
monochromatic
#3A1047 #621C79 #8A27AB #AD3DD3 #C26EDE

Accessibility & contrast

On white

7.10
#8A27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A27AB
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27AB#FFFFFF#000000##FFFFFF
##8A27AB1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#245BA8
Tritanopia (blue-blind)
#884568
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a27ab;
/* rgb */ color: rgb(138, 39, 171);
/* oklch */ color: oklch(48.8% 0.204 315.9);
Tailwind
colors: {
  custom: {
    50: '#b06dc5',
    500: '#8a27ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a27ab;
$custom-light: #b06dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27ab",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 285,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48757,
    "c": 0.20407,
    "h": 315.9
  },
  "luminance": 0.09795
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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