#8A36A7#8A36A7

#8A36A7 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.0% C 0.183 H 316.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8A36A7
RGBrgb(138, 54, 167)
HSLhsl(285, 51%, 43%)
HSVhsv(285, 68%, 65%)
CMYKcmyk(17.4%, 67.7%, 0%, 34.5%)
CIE-LABlab(39.30, 52.84, -45.04)
CIE-LCHlch(39.30, 69.44, 319.56°)
OKLaboklab(49.97% 0.1318 -0.1265)
OKLCHoklch(49.97% 0.183 316.2)
XYZxyz(18.7744, 10.8323, 37.6536)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36A7 #53A736
analogous
#5136A7 #8A36A7 #A7368B
triadic
#8A36A7 #A78A36 #36A78A
tetradic
#8A36A7 #A75136 #53A736 #368BA7
square
#8A36A7 #A75136 #53A736 #368BA7
split-complementary
#8A36A7 #8BA736 #36A751
monochromatic
#3E184B #642779 #8A36A7 #A953C7 #C081D6

Accessibility & contrast

On white

6.63
#8A36A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A36A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36A7
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36A7#FFFFFF#000000##FFFFFF
##8A36A71.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#365FA4
Tritanopia (blue-blind)
#884C6A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a36a7;
/* rgb */ color: rgb(138, 54, 167);
/* oklch */ color: oklch(50.0% 0.183 316.2);
Tailwind
colors: {
  custom: {
    50: '#af74c2',
    500: '#8a36a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a36a7;
$custom-light: #af74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36a7",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 167
  },
  "hsl": {
    "h": 284.602,
    "s": 51.131,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49972,
    "c": 0.18271,
    "h": 316.2
  },
  "luminance": 0.10832
}

Semantic roles & 50–950 ramp

primary
#8A36A7
secondary
#8BC079
accent
#DB4D71
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A36A7

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

Preview Lab → · Contrast checker → · Palette generator →

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