#8A36BB#8A36BB

#8A36BB is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.3% C 0.202 H 310.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A36BB
RGBrgb(138, 54, 187)
HSLhsl(278, 55%, 47%)
HSVhsv(278, 71%, 73%)
CMYKcmyk(26.2%, 71.1%, 0%, 26.7%)
CIE-LABlab(40.62, 57.10, -54.75)
CIE-LCHlch(40.62, 79.11, 316.20°)
OKLaboklab(51.34% 0.1299 -0.155)
OKLCHoklch(51.34% 0.202 310)
XYZxyz(20.7683, 11.6299, 48.1548)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36BB #67BB36
analogous
#4836BB #8A36BB #BB36AA
triadic
#8A36BB #BB8A36 #36BB8A
tetradic
#8A36BB #BB4836 #67BB36 #36AABB
square
#8A36BB #BB4836 #67BB36 #36AABB
split-complementary
#8A36BB #AABB36 #36BB48
monochromatic
#441B5C #67288C #8A36BB #A65ED0 #C08DDE

Accessibility & contrast

On white

6.31
#8A36BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A36BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36BB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36BB#FFFFFF#000000##FFFFFF
##8A36BB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#1C61B8
Tritanopia (blue-blind)
#835475
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a36bb;
/* rgb */ color: rgb(138, 54, 187);
/* oklch */ color: oklch(51.3% 0.202 310.0);
Tailwind
colors: {
  custom: {
    50: '#b174d0',
    500: '#8a36bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a36bb;
$custom-light: #b174d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36bb",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 187
  },
  "hsl": {
    "h": 277.895,
    "s": 55.187,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51342,
    "c": 0.20226,
    "h": 310
  },
  "luminance": 0.11629
}

Semantic roles & 50–950 ramp

primary
#8A36BB
secondary
#9DC984
accent
#DF4980
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A36BB

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

Preview Lab → · Contrast checker → · Palette generator →

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