#8A36AB#8A36AB

#8A36AB is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.2% C 0.187 H 314.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A36AB
RGBrgb(138, 54, 171)
HSLhsl(283, 52%, 44%)
HSVhsv(283, 68%, 67%)
CMYKcmyk(19.3%, 68.4%, 0%, 32.9%)
CIE-LABlab(39.55, 53.68, -47.02)
CIE-LCHlch(39.55, 71.36, 318.78°)
OKLaboklab(50.24% 0.1316 -0.1323)
OKLCHoklch(50.24% 0.187 314.8)
XYZxyz(19.1499, 10.9825, 39.6313)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36AB #57AB36
analogous
#5036AB #8A36AB #AB3692
triadic
#8A36AB #AB8A36 #36AB8A
tetradic
#8A36AB #AB5036 #57AB36 #3692AB
square
#8A36AB #AB5036 #57AB36 #3692AB
split-complementary
#8A36AB #92AB36 #36AB50
monochromatic
#3F194E #64277C #8A36AB #A855C9 #C083D8

Accessibility & contrast

On white

6.57
#8A36AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A36AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36AB
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36AB#FFFFFF#000000##FFFFFF
##8A36AB1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#325FA8
Tritanopia (blue-blind)
#874D6C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a36ab;
/* rgb */ color: rgb(138, 54, 171);
/* oklch */ color: oklch(50.2% 0.187 314.8);
Tailwind
colors: {
  custom: {
    50: '#b074c5',
    500: '#8a36ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a36ab;
$custom-light: #b074c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36ab",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 283.077,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50236,
    "c": 0.1866,
    "h": 314.8
  },
  "luminance": 0.10982
}

Semantic roles & 50–950 ramp

primary
#8A36AB
secondary
#8FC27B
accent
#DB4C75
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A36AB

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

Preview Lab → · Contrast checker → · Palette generator →

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