#8A36C1#8A36C1

#8A36C1 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.8% C 0.208 H 308.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A36C1
RGBrgb(138, 54, 193)
HSLhsl(276, 56%, 48%)
HSVhsv(276, 72%, 76%)
CMYKcmyk(28.5%, 72%, 0%, 24.3%)
CIE-LABlab(41.04, 58.41, -57.59)
CIE-LCHlch(41.04, 82.02, 315.41°)
OKLaboklab(51.78% 0.1291 -0.1633)
OKLCHoklch(51.78% 0.208 308.3)
XYZxyz(21.4241, 11.8922, 51.6085)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36C1 #6DC136
analogous
#4436C1 #8A36C1 #C136B2
triadic
#8A36C1 #C18A36 #36C18A
tetradic
#8A36C1 #C14436 #6DC136 #36B2C1
square
#8A36C1 #C14436 #6DC136 #36B2C1
split-complementary
#8A36C1 #B2C136 #36C144
monochromatic
#461B61 #682991 #8A36C1 #A661D3 #C191E0

Accessibility & contrast

On white

6.22
#8A36C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A36C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36C1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36C1#FFFFFF#000000##FFFFFF
##8A36C11.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#0C62BE
Tritanopia (blue-blind)
#815678
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a36c1;
/* rgb */ color: rgb(138, 54, 193);
/* oklch */ color: oklch(51.8% 0.208 308.3);
Tailwind
colors: {
  custom: {
    50: '#b175d5',
    500: '#8a36c1',
    950: '#000000',
  },
}
SCSS
$custom: #8a36c1;
$custom-light: #b175d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36c1",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 193
  },
  "hsl": {
    "h": 276.259,
    "s": 56.275,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51775,
    "c": 0.20816,
    "h": 308.3
  },
  "luminance": 0.11892
}

Semantic roles & 50–950 ramp

primary
#8A36C1
secondary
#A2CB88
accent
#E04884
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A36C1

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

Preview Lab → · Contrast checker → · Palette generator →

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