#8B27AA#8B27AA

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

Color values

HEX#8B27AA
RGBrgb(139, 39, 170)
HSLhsl(286, 63%, 41%)
HSVhsv(286, 77%, 67%)
CMYKcmyk(18.2%, 77.1%, 0%, 33.3%)
CIE-LABlab(37.56, 59.57, -49.62)
CIE-LCHlch(37.56, 77.53, 320.21°)
OKLaboklab(48.83% 0.148 -0.1398)
OKLCHoklch(48.83% 0.204 316.6)
XYZxyz(18.6276, 9.8431, 38.9411)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27AA #46AA27
analogous
#4A27AA #8B27AA #AA2787
triadic
#8B27AA #AA8B27 #27AA8B
tetradic
#8B27AA #AA4A27 #46AA27 #2787AA
square
#8B27AA #AA4A27 #46AA27 #2787AA
split-complementary
#8B27AA #87AA27 #27AA4A
monochromatic
#3A1046 #621C78 #8B27AA #AF3CD2 #C36EDE

Accessibility & contrast

On white

7.07
#8B27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8B27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B27AA
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27AA#FFFFFF#000000##FFFFFF
##8B27AA1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b27aa;
/* rgb */ color: rgb(139, 39, 170);
/* oklch */ color: oklch(48.8% 0.204 316.6);
Tailwind
colors: {
  custom: {
    50: '#b16dc4',
    500: '#8b27aa',
    950: '#000000',
  },
}
SCSS
$custom: #8b27aa;
$custom-light: #b16dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27aa",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 285.802,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48828,
    "c": 0.20355,
    "h": 316.6
  },
  "luminance": 0.09842
}

Semantic roles & 50–950 ramp

primary
#8B27AA
secondary
#7EC469
accent
#E64269
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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