#8A36A0#8A36A0

#8A36A0 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.5% C 0.176 H 318.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8A36A0
RGBrgb(138, 54, 160)
HSLhsl(288, 50%, 42%)
HSVhsv(288, 66%, 63%)
CMYKcmyk(13.8%, 66.3%, 0%, 37.3%)
CIE-LABlab(38.86, 51.41, -41.54)
CIE-LCHlch(38.86, 66.10, 321.06°)
OKLaboklab(49.52% 0.1321 -0.1162)
OKLCHoklch(49.52% 0.176 318.6)
XYZxyz(18.1447, 10.5805, 34.3374)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36A0 #4CA036
analogous
#5536A0 #8A36A0 #A03681
triadic
#8A36A0 #A08A36 #36A08A
tetradic
#8A36A0 #A05536 #4CA036 #3681A0
square
#8A36A0 #A05536 #4CA036 #3681A0
split-complementary
#8A36A0 #81A036 #36A055
monochromatic
#3B1744 #632772 #8A36A0 #AC4FC4 #C17DD3

Accessibility & contrast

On white

6.74
#8A36A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A36A0
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36A0#FFFFFF#000000##FFFFFF
##8A36A01.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1156A3
Deuteranopia (green-blind)
#3C5E9D
Tritanopia (blue-blind)
#8A4966
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a36a0;
/* rgb */ color: rgb(138, 54, 160);
/* oklch */ color: oklch(49.5% 0.176 318.6);
Tailwind
colors: {
  custom: {
    50: '#af73bd',
    500: '#8a36a0',
    950: '#000000',
  },
}
SCSS
$custom: #8a36a0;
$custom-light: #af73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36a0",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 160
  },
  "hsl": {
    "h": 287.547,
    "s": 49.533,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49523,
    "c": 0.17596,
    "h": 318.6
  },
  "luminance": 0.1058
}

Semantic roles & 50–950 ramp

primary
#8A36A0
secondary
#84BC75
accent
#D94F6B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A36A0

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

Preview Lab → · Contrast checker → · Palette generator →

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