#8A36B1#8A36B1

#8A36B1 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.6% C 0.192 H 312.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8A36B1
RGBrgb(138, 54, 177)
HSLhsl(281, 53%, 45%)
HSVhsv(281, 69%, 69%)
CMYKcmyk(22%, 69.5%, 0%, 30.6%)
CIE-LABlab(39.94, 54.94, -49.95)
CIE-LCHlch(39.94, 74.26, 317.72°)
OKLaboklab(50.64% 0.1311 -0.1409)
OKLCHoklch(50.64% 0.192 312.9)
XYZxyz(19.7348, 11.2165, 42.7119)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B1 #5DB136
analogous
#4D36B1 #8A36B1 #B1369A
triadic
#8A36B1 #B18A36 #36B18A
tetradic
#8A36B1 #B14D36 #5DB136 #369AB1
square
#8A36B1 #B14D36 #5DB136 #369AB1
split-complementary
#8A36B1 #9AB136 #36B14D
monochromatic
#411953 #652882 #8A36B1 #A758CC #C087DA

Accessibility & contrast

On white

6.48
#8A36B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A36B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36B1
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B1#FFFFFF#000000##FFFFFF
##8A36B11.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#2C60AE
Tritanopia (blue-blind)
#86506F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a36b1;
/* rgb */ color: rgb(138, 54, 177);
/* oklch */ color: oklch(50.6% 0.192 312.9);
Tailwind
colors: {
  custom: {
    50: '#b074c9',
    500: '#8a36b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b1;
$custom-light: #b074c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b1",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 177
  },
  "hsl": {
    "h": 280.976,
    "s": 53.247,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50642,
    "c": 0.19245,
    "h": 312.9
  },
  "luminance": 0.11216
}

Semantic roles & 50–950 ramp

primary
#8A36B1
secondary
#95C47F
accent
#DD4B79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A36B1

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

Preview Lab → · Contrast checker → · Palette generator →

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