#8A36B8#8A36B8

#8A36B8 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 51.1% C 0.199 H 310.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8A36B8
RGBrgb(138, 54, 184)
HSLhsl(279, 55%, 47%)
HSVhsv(279, 71%, 72%)
CMYKcmyk(25%, 70.7%, 0%, 27.8%)
CIE-LABlab(40.41, 56.44, -53.33)
CIE-LCHlch(40.41, 77.65, 316.63°)
OKLaboklab(51.13% 0.1303 -0.1508)
OKLCHoklch(51.13% 0.199 310.8)
XYZxyz(20.4505, 11.5028, 46.4811)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B8 #64B836
analogous
#4936B8 #8A36B8 #B836A5
triadic
#8A36B8 #B88A36 #36B88A
tetradic
#8A36B8 #B84936 #64B836 #36A5B8
square
#8A36B8 #B84936 #64B836 #36A5B8
split-complementary
#8A36B8 #A5B836 #36B849
monochromatic
#431A59 #672889 #8A36B8 #A65CCF #C08BDD

Accessibility & contrast

On white

6.36
#8A36B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A36B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36B8
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B8#FFFFFF#000000##FFFFFF
##8A36B81.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#2261B5
Tritanopia (blue-blind)
#845273
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a36b8;
/* rgb */ color: rgb(138, 54, 184);
/* oklch */ color: oklch(51.1% 0.199 310.8);
Tailwind
colors: {
  custom: {
    50: '#b074ce',
    500: '#8a36b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b8;
$custom-light: #b074ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b8",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 184
  },
  "hsl": {
    "h": 278.769,
    "s": 54.622,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51128,
    "c": 0.19932,
    "h": 310.8
  },
  "luminance": 0.11502
}

Semantic roles & 50–950 ramp

primary
#8A36B8
secondary
#9BC782
accent
#DE4A7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A36B8

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

Preview Lab → · Contrast checker → · Palette generator →

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