#8A27AE#8A27AE

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

Color values

HEX#8A27AE
RGBrgb(138, 39, 174)
HSLhsl(284, 63%, 42%)
HSVhsv(284, 78%, 68%)
CMYKcmyk(20.7%, 77.6%, 0%, 31.8%)
CIE-LABlab(37.68, 60.17, -51.82)
CIE-LCHlch(37.68, 79.41, 319.27°)
OKLaboklab(48.97% 0.1461 -0.1463)
OKLCHoklch(48.97% 0.207 315)
XYZxyz(18.8455, 9.9110, 40.9565)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27AE #4BAE27
analogous
#4727AE #8A27AE #AE278F
triadic
#8A27AE #AE8A27 #27AE8A
tetradic
#8A27AE #AE4727 #4BAE27 #278FAE
square
#8A27AE #AE4727 #4BAE27 #278FAE
split-complementary
#8A27AE #8FAE27 #27AE47
monochromatic
#3B114A #621C7C #8A27AE #AC3ED4 #C270DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A27AE#FFFFFF#000000##FFFFFF
##8A27AE1.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)
#0053B2
Deuteranopia (green-blind)
#205BAB
Tritanopia (blue-blind)
#87466A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a27ae;
/* rgb */ color: rgb(138, 39, 174);
/* oklch */ color: oklch(49.0% 0.207 315.0);
Tailwind
colors: {
  custom: {
    50: '#b16dc7',
    500: '#8a27ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a27ae;
$custom-light: #b16dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27ae",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 284,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48972,
    "c": 0.20672,
    "h": 315
  },
  "luminance": 0.0991
}

Semantic roles & 50–950 ramp

primary
#8A27AE
secondary
#83C66B
accent
#E6416D
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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