#8A4EAB#8A4EAB

#8A4EAB is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.4% C 0.151 H 312.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A4EAB
RGBrgb(138, 78, 171)
HSLhsl(279, 37%, 49%)
HSVhsv(279, 54%, 67%)
CMYKcmyk(19.3%, 54.4%, 0%, 32.9%)
CIE-LABlab(43.93, 41.78, -40.02)
CIE-LCHlch(43.93, 57.86, 316.23°)
OKLaboklab(53.42% 0.1013 -0.112)
OKLCHoklch(53.42% 0.151 312.1)
XYZxyz(20.5550, 13.7928, 40.0996)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EAB #6FAB4E
analogous
#5C4EAB #8A4EAB #AB4E9E
triadic
#8A4EAB #AB8A4E #4EAB8A
tetradic
#8A4EAB #AB5C4E #6FAB4E #4E9EAB
square
#8A4EAB #AB5C4E #6FAB4E #4E9EAB
split-complementary
#8A4EAB #9EAB4E #4EAB5C
monochromatic
#462857 #683B81 #8A4EAB #A676C0 #C1A0D4

Accessibility & contrast

On white

5.59
#8A4EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A4EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EAB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EAB#FFFFFF#000000##FFFFFF
##8A4EAB1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AE
Deuteranopia (green-blind)
#4969A9
Tritanopia (blue-blind)
#875E75
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4eab;
/* rgb */ color: rgb(138, 78, 171);
/* oklch */ color: oklch(53.4% 0.151 312.1);
Tailwind
colors: {
  custom: {
    50: '#ae82c4',
    500: '#8a4eab',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eab;
$custom-light: #ae82c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eab",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 278.71,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.53423,
    "c": 0.15101,
    "h": 312.1
  },
  "luminance": 0.13792
}

Semantic roles & 50–950 ramp

primary
#8A4EAB
secondary
#A4C194
accent
#CD5A83
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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