#8A4ABA#8A4ABA

#8A4ABA is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.8% C 0.174 H 307.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A4ABA
RGBrgb(138, 74, 186)
HSLhsl(274, 45%, 51%)
HSVhsv(274, 60%, 73%)
CMYKcmyk(25.8%, 60.2%, 0%, 27.1%)
CIE-LABlab(44.01, 47.35, -48.71)
CIE-LCHlch(44.01, 67.93, 314.19°)
OKLaboklab(53.76% 0.1071 -0.1374)
OKLCHoklch(53.76% 0.174 307.9)
XYZxyz(21.7911, 13.8463, 47.9695)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ABA #7ABA4A
analogous
#524ABA #8A4ABA #BA4AB2
triadic
#8A4ABA #BA8A4A #4ABA8A
tetradic
#8A4ABA #BA524A #7ABA4A #4AB2BA
square
#8A4ABA #BA524A #7ABA4A #4AB2BA
split-complementary
#8A4ABA #B2BA4A #4ABA52
monochromatic
#492664 #6A3790 #8A4ABA #A776CB #C3A3DC

Accessibility & contrast

On white

5.57
#8A4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ABA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ABA#FFFFFF#000000##FFFFFF
##8A4ABA1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A66BE
Deuteranopia (green-blind)
#3969B7
Tritanopia (blue-blind)
#83607B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4aba;
/* rgb */ color: rgb(138, 74, 186);
/* oklch */ color: oklch(53.8% 0.174 307.9);
Tailwind
colors: {
  custom: {
    50: '#af80cf',
    500: '#8a4aba',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aba;
$custom-light: #af80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aba",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 274.286,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53762,
    "c": 0.17418,
    "h": 307.9
  },
  "luminance": 0.13846
}

Semantic roles & 50–950 ramp

primary
#8A4ABA
secondary
#ACC997
accent
#D5538B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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