#8A36C4#8A36C4

#8A36C4 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.0% C 0.211 H 307.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A36C4
RGBrgb(138, 54, 196)
HSLhsl(275, 57%, 49%)
HSVhsv(275, 72%, 77%)
CMYKcmyk(29.6%, 72.4%, 0%, 23.1%)
CIE-LABlab(41.26, 59.08, -58.99)
CIE-LCHlch(41.26, 83.48, 315.04°)
OKLaboklab(52% 0.1286 -0.1674)
OKLCHoklch(52% 0.211 307.5)
XYZxyz(21.7621, 12.0274, 53.3889)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36C4 #70C436
analogous
#4336C4 #8A36C4 #C436B7
triadic
#8A36C4 #C48A36 #36C48A
tetradic
#8A36C4 #C44336 #70C436 #36B7C4
square
#8A36C4 #C44336 #70C436 #36B7C4
split-complementary
#8A36C4 #B7C436 #36C443
monochromatic
#461C64 #682994 #8A36C4 #A663D4 #C193E1

Accessibility & contrast

On white

6.17
#8A36C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A36C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36C4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36C4#FFFFFF#000000##FFFFFF
##8A36C41.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#0062C1
Tritanopia (blue-blind)
#80577A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a36c4;
/* rgb */ color: rgb(138, 54, 196);
/* oklch */ color: oklch(52.0% 0.211 307.5);
Tailwind
colors: {
  custom: {
    50: '#b175d7',
    500: '#8a36c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a36c4;
$custom-light: #b175d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36c4",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 196
  },
  "hsl": {
    "h": 275.493,
    "s": 56.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51996,
    "c": 0.21111,
    "h": 307.5
  },
  "luminance": 0.12027
}

Semantic roles & 50–950 ramp

primary
#8A36C4
secondary
#A5CC89
accent
#E04886
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A36C4

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

Preview Lab → · Contrast checker → · Palette generator →

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