#8A36C6#8A36C6

#8A36C6 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.1% C 0.213 H 307.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#8A36C6
RGBrgb(138, 54, 198)
HSLhsl(275, 57%, 49%)
HSVhsv(275, 73%, 78%)
CMYKcmyk(30.3%, 72.7%, 0%, 22.4%)
CIE-LABlab(41.40, 59.52, -59.92)
CIE-LCHlch(41.40, 84.45, 314.81°)
OKLaboklab(52.14% 0.1283 -0.1702)
OKLCHoklch(52.14% 0.213 307)
XYZxyz(21.9913, 12.1191, 54.5958)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36C6 #72C636
analogous
#4236C6 #8A36C6 #C636BA
triadic
#8A36C6 #C68A36 #36C68A
tetradic
#8A36C6 #C64236 #72C636 #36BAC6
square
#8A36C6 #C64236 #72C636 #36BAC6
split-complementary
#8A36C6 #BAC636 #36C642
monochromatic
#471C66 #682996 #8A36C6 #A664D5 #C294E2

Accessibility & contrast

On white

6.13
#8A36C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8A36C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36C6
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36C6#FFFFFF#000000##FFFFFF
##8A36C61.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#80587B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a36c6;
/* rgb */ color: rgb(138, 54, 198);
/* oklch */ color: oklch(52.1% 0.213 307.0);
Tailwind
colors: {
  custom: {
    50: '#b175d8',
    500: '#8a36c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a36c6;
$custom-light: #b175d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36c6",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 198
  },
  "hsl": {
    "h": 275,
    "s": 57.143,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52144,
    "c": 0.21308,
    "h": 307
  },
  "luminance": 0.12119
}

Semantic roles & 50–950 ramp

primary
#8A36C6
secondary
#A6CD8B
accent
#E04787
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8A36C6

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

Preview Lab → · Contrast checker → · Palette generator →

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