#8A27AA#8A27AA

#8A27AA is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.7% C 0.203 H 316.2°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8A27AA
RGBrgb(138, 39, 170)
HSLhsl(285, 63%, 41%)
HSVhsv(285, 77%, 67%)
CMYKcmyk(18.8%, 77.1%, 0%, 33.3%)
CIE-LABlab(37.40, 59.38, -49.88)
CIE-LCHlch(37.40, 77.55, 319.97°)
OKLaboklab(48.69% 0.1467 -0.1406)
OKLCHoklch(48.69% 0.203 316.2)
XYZxyz(18.4613, 9.7573, 38.9333)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27AA #47AA27
analogous
#4927AA #8A27AA #AA2788
triadic
#8A27AA #AA8A27 #27AA8A
tetradic
#8A27AA #AA4927 #47AA27 #2788AA
square
#8A27AA #AA4927 #47AA27 #2788AA
split-complementary
#8A27AA #88AA27 #27AA49
monochromatic
#391046 #621C78 #8A27AA #AE3CD2 #C26EDE

Accessibility & contrast

On white

7.12
#8A27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A27AA
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27AA#FFFFFF#000000##FFFFFF
##8A27AA1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#265BA7
Tritanopia (blue-blind)
#884468
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a27aa;
/* rgb */ color: rgb(138, 39, 170);
/* oklch */ color: oklch(48.7% 0.203 316.2);
Tailwind
colors: {
  custom: {
    50: '#b06dc4',
    500: '#8a27aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a27aa;
$custom-light: #b06dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27aa",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 285.344,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48686,
    "c": 0.20318,
    "h": 316.2
  },
  "luminance": 0.09757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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