#8A36B5#8A36B5

#8A36B5 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.9% C 0.196 H 311.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8A36B5
RGBrgb(138, 54, 181)
HSLhsl(280, 54%, 46%)
HSVhsv(280, 70%, 71%)
CMYKcmyk(23.8%, 70.2%, 0%, 29%)
CIE-LABlab(40.21, 55.80, -51.89)
CIE-LCHlch(40.21, 76.19, 317.08°)
OKLaboklab(50.92% 0.1307 -0.1466)
OKLCHoklch(50.92% 0.196 311.7)
XYZxyz(20.1393, 11.3783, 44.8424)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B5 #61B536
analogous
#4A36B5 #8A36B5 #B536A0
triadic
#8A36B5 #B58A36 #36B58A
tetradic
#8A36B5 #B54A36 #61B536 #36A0B5
square
#8A36B5 #B54A36 #61B536 #36A0B5
split-complementary
#8A36B5 #A0B536 #36B54A
monochromatic
#421A57 #662886 #8A36B5 #A75ACE #C089DC

Accessibility & contrast

On white

6.41
#8A36B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A36B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36B5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B5#FFFFFF#000000##FFFFFF
##8A36B51.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#2660B2
Tritanopia (blue-blind)
#855172
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a36b5;
/* rgb */ color: rgb(138, 54, 181);
/* oklch */ color: oklch(50.9% 0.196 311.7);
Tailwind
colors: {
  custom: {
    50: '#b074cc',
    500: '#8a36b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b5;
$custom-light: #b074cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b5",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 181
  },
  "hsl": {
    "h": 279.685,
    "s": 54.043,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.19637,
    "h": 311.7
  },
  "luminance": 0.11378
}

Semantic roles & 50–950 ramp

primary
#8A36B5
secondary
#98C681
accent
#DD4A7C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A36B5

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

Preview Lab → · Contrast checker → · Palette generator →

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