#8A36BD#8A36BD

#8A36BD is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.204 H 309.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A36BD
RGBrgb(138, 54, 189)
HSLhsl(277, 56%, 48%)
HSVhsv(277, 71%, 74%)
CMYKcmyk(27%, 71.4%, 0%, 25.9%)
CIE-LABlab(40.76, 57.53, -55.70)
CIE-LCHlch(40.76, 80.08, 315.93°)
OKLaboklab(51.49% 0.1297 -0.1578)
OKLCHoklch(51.49% 0.204 309.4)
XYZxyz(20.9839, 11.7161, 49.2903)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36BD #69BD36
analogous
#4636BD #8A36BD #BD36AD
triadic
#8A36BD #BD8A36 #36BD8A
tetradic
#8A36BD #BD4636 #69BD36 #36ADBD
square
#8A36BD #BD4636 #69BD36 #36ADBD
split-complementary
#8A36BD #ADBD36 #36BD46
monochromatic
#441B5E #67288D #8A36BD #A65FD1 #C18FDF

Accessibility & contrast

On white

6.28
#8A36BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A36BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36BD
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36BD#FFFFFF#000000##FFFFFF
##8A36BD1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#1861BA
Tritanopia (blue-blind)
#835476
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a36bd;
/* rgb */ color: rgb(138, 54, 189);
/* oklch */ color: oklch(51.5% 0.204 309.4);
Tailwind
colors: {
  custom: {
    50: '#b174d2',
    500: '#8a36bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a36bd;
$custom-light: #b174d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36bd",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 189
  },
  "hsl": {
    "h": 277.333,
    "s": 55.556,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51485,
    "c": 0.20423,
    "h": 309.4
  },
  "luminance": 0.11716
}

Semantic roles & 50–950 ramp

primary
#8A36BD
secondary
#9FC985
accent
#DF4982
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A36BD

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

Preview Lab → · Contrast checker → · Palette generator →

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