#8A36AA#8A36AA

#8A36AA is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.2% C 0.186 H 315.2°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A36AA
RGBrgb(138, 54, 170)
HSLhsl(283, 52%, 44%)
HSVhsv(283, 68%, 67%)
CMYKcmyk(18.8%, 68.2%, 0%, 33.3%)
CIE-LABlab(39.49, 53.47, -46.53)
CIE-LCHlch(39.49, 70.88, 318.97°)
OKLaboklab(50.17% 0.1317 -0.1308)
OKLCHoklch(50.17% 0.186 315.2)
XYZxyz(19.0549, 10.9446, 39.1312)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36AA #56AA36
analogous
#5036AA #8A36AA #AA3690
triadic
#8A36AA #AA8A36 #36AA8A
tetradic
#8A36AA #AA5036 #56AA36 #3690AA
square
#8A36AA #AA5036 #56AA36 #3690AA
split-complementary
#8A36AA #90AA36 #36AA50
monochromatic
#3F184D #64277C #8A36AA #A954C9 #C083D8

Accessibility & contrast

On white

6.59
#8A36AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A36AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36AA
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36AA#FFFFFF#000000##FFFFFF
##8A36AA1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#335FA7
Tritanopia (blue-blind)
#884D6C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a36aa;
/* rgb */ color: rgb(138, 54, 170);
/* oklch */ color: oklch(50.2% 0.186 315.2);
Tailwind
colors: {
  custom: {
    50: '#b074c4',
    500: '#8a36aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a36aa;
$custom-light: #b074c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36aa",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 170
  },
  "hsl": {
    "h": 283.448,
    "s": 51.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5017,
    "c": 0.18562,
    "h": 315.2
  },
  "luminance": 0.10944
}

Semantic roles & 50–950 ramp

primary
#8A36AA
secondary
#8EC17B
accent
#DB4D74
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A36AA

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

Preview Lab → · Contrast checker → · Palette generator →

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