#8A36A4#8A36A4

#8A36A4 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.8% C 0.180 H 317.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#8A36A4
RGBrgb(138, 54, 164)
HSLhsl(286, 50%, 43%)
HSVhsv(286, 67%, 64%)
CMYKcmyk(15.9%, 67.1%, 0%, 35.7%)
CIE-LABlab(39.11, 52.23, -43.55)
CIE-LCHlch(39.11, 68.00, 320.18°)
OKLaboklab(49.78% 0.132 -0.1221)
OKLCHoklch(49.78% 0.18 317.2)
XYZxyz(18.5003, 10.7227, 36.2099)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36A4 #50A436
analogous
#5336A4 #8A36A4 #A43687
triadic
#8A36A4 #A48A36 #36A48A
tetradic
#8A36A4 #A45336 #50A436 #3687A4
square
#8A36A4 #A45336 #50A436 #3687A4
split-complementary
#8A36A4 #87A436 #36A453
monochromatic
#3D1848 #632776 #8A36A4 #AA51C6 #C17FD5

Accessibility & contrast

On white

6.68
#8A36A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A36A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36A4
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36A4#FFFFFF#000000##FFFFFF
##8A36A41.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0557A7
Deuteranopia (green-blind)
#395FA1
Tritanopia (blue-blind)
#894A68
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a36a4;
/* rgb */ color: rgb(138, 54, 164);
/* oklch */ color: oklch(49.8% 0.180 317.2);
Tailwind
colors: {
  custom: {
    50: '#af73bf',
    500: '#8a36a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a36a4;
$custom-light: #af73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36a4",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 164
  },
  "hsl": {
    "h": 285.818,
    "s": 50.459,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49778,
    "c": 0.17981,
    "h": 317.2
  },
  "luminance": 0.10722
}

Semantic roles & 50–950 ramp

primary
#8A36A4
secondary
#88BE78
accent
#DA4E6F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A36A4

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

Preview Lab → · Contrast checker → · Palette generator →

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