#8A36B6#8A36B6

#8A36B6 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 51.0% C 0.197 H 311.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A36B6
RGBrgb(138, 54, 182)
HSLhsl(279, 54%, 46%)
HSVhsv(279, 70%, 71%)
CMYKcmyk(24.2%, 70.3%, 0%, 28.6%)
CIE-LABlab(40.28, 56.01, -52.37)
CIE-LCHlch(40.28, 76.68, 316.93°)
OKLaboklab(50.99% 0.1306 -0.148)
OKLCHoklch(50.99% 0.197 311.4)
XYZxyz(20.2423, 11.4195, 45.3848)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B6 #62B636
analogous
#4A36B6 #8A36B6 #B636A2
triadic
#8A36B6 #B68A36 #36B68A
tetradic
#8A36B6 #B64A36 #62B636 #36A2B6
square
#8A36B6 #B64A36 #62B636 #36A2B6
split-complementary
#8A36B6 #A2B636 #36B64A
monochromatic
#421A58 #662887 #8A36B6 #A75BCE #C08ADC

Accessibility & contrast

On white

6.40
#8A36B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A36B6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B6#FFFFFF#000000##FFFFFF
##8A36B61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#2560B3
Tritanopia (blue-blind)
#845272
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a36b6;
/* rgb */ color: rgb(138, 54, 182);
/* oklch */ color: oklch(51.0% 0.197 311.4);
Tailwind
colors: {
  custom: {
    50: '#b074cd',
    500: '#8a36b6',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b6;
$custom-light: #b074cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b6",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 182
  },
  "hsl": {
    "h": 279.375,
    "s": 54.237,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50988,
    "c": 0.19735,
    "h": 311.4
  },
  "luminance": 0.11419
}

Semantic roles & 50–950 ramp

primary
#8A36B6
secondary
#99C681
accent
#DE4A7D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A36B6

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

Preview Lab → · Contrast checker → · Palette generator →

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