#8A36A5#8A36A5

#8A36A5 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.8% C 0.181 H 316.9°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A36A5
RGBrgb(138, 54, 165)
HSLhsl(285, 51%, 43%)
HSVhsv(285, 67%, 65%)
CMYKcmyk(16.4%, 67.3%, 0%, 35.3%)
CIE-LABlab(39.17, 52.43, -44.05)
CIE-LCHlch(39.17, 68.48, 319.97°)
OKLaboklab(49.84% 0.1319 -0.1236)
OKLCHoklch(49.84% 0.181 316.9)
XYZxyz(18.5909, 10.7590, 36.6874)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36A5 #51A536
analogous
#5236A5 #8A36A5 #A53689
triadic
#8A36A5 #A58A36 #36A58A
tetradic
#8A36A5 #A55236 #51A536 #3689A5
square
#8A36A5 #A55236 #51A536 #3689A5
split-complementary
#8A36A5 #89A536 #36A552
monochromatic
#3D1849 #632777 #8A36A5 #AA52C6 #C180D5

Accessibility & contrast

On white

6.66
#8A36A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A36A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36A5
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36A5#FFFFFF#000000##FFFFFF
##8A36A51.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0157A8
Deuteranopia (green-blind)
#385FA2
Tritanopia (blue-blind)
#894B69
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a36a5;
/* rgb */ color: rgb(138, 54, 165);
/* oklch */ color: oklch(49.8% 0.181 316.9);
Tailwind
colors: {
  custom: {
    50: '#af74c0',
    500: '#8a36a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a36a5;
$custom-light: #af74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36a5",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 165
  },
  "hsl": {
    "h": 285.405,
    "s": 50.685,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49842,
    "c": 0.18078,
    "h": 316.9
  },
  "luminance": 0.10758
}

Semantic roles & 50–950 ramp

primary
#8A36A5
secondary
#89BF78
accent
#DA4E70
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A36A5

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

Preview Lab → · Contrast checker → · Palette generator →

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