#8A36B0#8A36B0

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

Color values

HEX#8A36B0
RGBrgb(138, 54, 176)
HSLhsl(281, 53%, 45%)
HSVhsv(281, 69%, 69%)
CMYKcmyk(21.6%, 69.3%, 0%, 31%)
CIE-LABlab(39.88, 54.73, -49.47)
CIE-LCHlch(39.88, 73.77, 317.89°)
OKLaboklab(50.57% 0.1312 -0.1395)
OKLCHoklch(50.57% 0.191 313.2)
XYZxyz(19.6355, 11.1768, 42.1889)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B0 #5CB036
analogous
#4D36B0 #8A36B0 #B03699
triadic
#8A36B0 #B08A36 #36B08A
tetradic
#8A36B0 #B04D36 #5CB036 #3699B0
square
#8A36B0 #B04D36 #5CB036 #3699B0
split-complementary
#8A36B0 #99B036 #36B04D
monochromatic
#411952 #652881 #8A36B0 #A758CC #C086DA

Accessibility & contrast

On white

6.49
#8A36B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A36B0
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B0#FFFFFF#000000##FFFFFF
##8A36B01.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#2D60AD
Tritanopia (blue-blind)
#864F6F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a36b0;
/* rgb */ color: rgb(138, 54, 176);
/* oklch */ color: oklch(50.6% 0.191 313.2);
Tailwind
colors: {
  custom: {
    50: '#b074c8',
    500: '#8a36b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b0;
$custom-light: #b074c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b0",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 176
  },
  "hsl": {
    "h": 281.311,
    "s": 53.043,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50573,
    "c": 0.19148,
    "h": 313.2
  },
  "luminance": 0.11176
}

Semantic roles & 50–950 ramp

primary
#8A36B0
secondary
#94C47E
accent
#DC4B79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A36B0

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

Preview Lab → · Contrast checker → · Palette generator →

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