#8A36A1#8A36A1

#8A36A1 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.6% C 0.177 H 318.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8A36A1
RGBrgb(138, 54, 161)
HSLhsl(287, 50%, 42%)
HSVhsv(287, 66%, 63%)
CMYKcmyk(14.3%, 66.5%, 0%, 36.9%)
CIE-LABlab(38.93, 51.62, -42.04)
CIE-LCHlch(38.93, 66.57, 320.84°)
OKLaboklab(49.59% 0.1321 -0.1177)
OKLCHoklch(49.59% 0.177 318.3)
XYZxyz(18.2325, 10.6156, 34.7999)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36A1 #4DA136
analogous
#5536A1 #8A36A1 #A13682
triadic
#8A36A1 #A18A36 #36A18A
tetradic
#8A36A1 #A15536 #4DA136 #3682A1
square
#8A36A1 #A15536 #4DA136 #3682A1
split-complementary
#8A36A1 #82A136 #36A155
monochromatic
#3B1745 #632773 #8A36A1 #AB50C4 #C17ED4

Accessibility & contrast

On white

6.72
#8A36A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A36A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36A1
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36A1#FFFFFF#000000##FFFFFF
##8A36A11.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E56A4
Deuteranopia (green-blind)
#3B5E9E
Tritanopia (blue-blind)
#8A4967
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a36a1;
/* rgb */ color: rgb(138, 54, 161);
/* oklch */ color: oklch(49.6% 0.177 318.3);
Tailwind
colors: {
  custom: {
    50: '#af73bd',
    500: '#8a36a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a36a1;
$custom-light: #af73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36a1",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 161
  },
  "hsl": {
    "h": 287.103,
    "s": 49.767,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49586,
    "c": 0.17692,
    "h": 318.3
  },
  "luminance": 0.10615
}

Semantic roles & 50–950 ramp

primary
#8A36A1
secondary
#85BD76
accent
#D94F6C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A36A1

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

Preview Lab → · Contrast checker → · Palette generator →

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