#8A36B2#8A36B2

#8A36B2 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.193 H 312.6°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A36B2
RGBrgb(138, 54, 178)
HSLhsl(281, 53%, 45%)
HSVhsv(281, 70%, 70%)
CMYKcmyk(22.5%, 69.7%, 0%, 30.2%)
CIE-LABlab(40.01, 55.16, -50.44)
CIE-LCHlch(40.01, 74.74, 317.56°)
OKLaboklab(50.71% 0.131 -0.1423)
OKLCHoklch(50.71% 0.193 312.6)
XYZxyz(19.8348, 11.2565, 43.2387)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B2 #5EB236
analogous
#4C36B2 #8A36B2 #B2369C
triadic
#8A36B2 #B28A36 #36B28A
tetradic
#8A36B2 #B24C36 #5EB236 #369CB2
square
#8A36B2 #B24C36 #5EB236 #369CB2
split-complementary
#8A36B2 #9CB236 #36B24C
monochromatic
#411A54 #662883 #8A36B2 #A759CD #C088DB

Accessibility & contrast

On white

6.46
#8A36B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A36B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36B2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B2#FFFFFF#000000##FFFFFF
##8A36B21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#2A60AF
Tritanopia (blue-blind)
#865070
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a36b2;
/* rgb */ color: rgb(138, 54, 178);
/* oklch */ color: oklch(50.7% 0.193 312.6);
Tailwind
colors: {
  custom: {
    50: '#b074ca',
    500: '#8a36b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b2;
$custom-light: #b074ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b2",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 280.645,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5071,
    "c": 0.19343,
    "h": 312.6
  },
  "luminance": 0.11256
}

Semantic roles & 50–950 ramp

primary
#8A36B2
secondary
#96C57F
accent
#DD4B7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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