#8A36B3#8A36B3

#8A36B3 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.194 H 312.3°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#8A36B3
RGBrgb(138, 54, 179)
HSLhsl(280, 54%, 46%)
HSVhsv(280, 70%, 70%)
CMYKcmyk(22.9%, 69.8%, 0%, 29.8%)
CIE-LABlab(40.08, 55.37, -50.92)
CIE-LCHlch(40.08, 75.22, 317.40°)
OKLaboklab(50.78% 0.1309 -0.1437)
OKLCHoklch(50.78% 0.194 312.3)
XYZxyz(19.9356, 11.2968, 43.7694)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B3 #5FB336
analogous
#4B36B3 #8A36B3 #B3369D
triadic
#8A36B3 #B38A36 #36B38A
tetradic
#8A36B3 #B34B36 #5FB336 #369DB3
square
#8A36B3 #B34B36 #5FB336 #369DB3
split-complementary
#8A36B3 #9DB336 #36B34B
monochromatic
#421A55 #662884 #8A36B3 #A759CD #C088DB

Accessibility & contrast

On white

6.44
#8A36B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A36B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36B3
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B3#FFFFFF#000000##FFFFFF
##8A36B31.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#2960B0
Tritanopia (blue-blind)
#855071
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a36b3;
/* rgb */ color: rgb(138, 54, 179);
/* oklch */ color: oklch(50.8% 0.194 312.3);
Tailwind
colors: {
  custom: {
    50: '#b074ca',
    500: '#8a36b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b3;
$custom-light: #b074ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b3",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 179
  },
  "hsl": {
    "h": 280.32,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50779,
    "c": 0.19441,
    "h": 312.3
  },
  "luminance": 0.11296
}

Semantic roles & 50–950 ramp

primary
#8A36B3
secondary
#96C580
accent
#DD4B7B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A36B3

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

Preview Lab → · Contrast checker → · Palette generator →

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