#8A36B9#8A36B9

#8A36B9 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.2% C 0.200 H 310.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A36B9
RGBrgb(138, 54, 185)
HSLhsl(278, 55%, 47%)
HSVhsv(278, 71%, 73%)
CMYKcmyk(25.4%, 70.8%, 0%, 27.5%)
CIE-LABlab(40.48, 56.66, -53.80)
CIE-LCHlch(40.48, 78.14, 316.48°)
OKLaboklab(51.2% 0.1302 -0.1522)
OKLCHoklch(51.2% 0.2 310.5)
XYZxyz(20.5557, 11.5449, 47.0351)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B9 #65B936
analogous
#4836B9 #8A36B9 #B936A7
triadic
#8A36B9 #B98A36 #36B98A
tetradic
#8A36B9 #B94836 #65B936 #36A7B9
square
#8A36B9 #B94836 #65B936 #36A7B9
split-complementary
#8A36B9 #A7B936 #36B948
monochromatic
#431A5A #67288A #8A36B9 #A65DD0 #C08CDD

Accessibility & contrast

On white

6.35
#8A36B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A36B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36B9
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B9#FFFFFF#000000##FFFFFF
##8A36B91.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#2061B6
Tritanopia (blue-blind)
#845374
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a36b9;
/* rgb */ color: rgb(138, 54, 185);
/* oklch */ color: oklch(51.2% 0.200 310.5);
Tailwind
colors: {
  custom: {
    50: '#b074cf',
    500: '#8a36b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b9;
$custom-light: #b074cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b9",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 185
  },
  "hsl": {
    "h": 278.473,
    "s": 54.812,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51199,
    "c": 0.20029,
    "h": 310.5
  },
  "luminance": 0.11544
}

Semantic roles & 50–950 ramp

primary
#8A36B9
secondary
#9CC883
accent
#DE4A7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A36B9

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

Preview Lab → · Contrast checker → · Palette generator →

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