#8A4AB8#8A4AB8

#8A4AB8 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.6% C 0.172 H 308.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8A4AB8
RGBrgb(138, 74, 184)
HSLhsl(275, 44%, 51%)
HSVhsv(275, 60%, 72%)
CMYKcmyk(25%, 59.8%, 0%, 27.8%)
CIE-LABlab(43.89, 46.88, -47.74)
CIE-LCHlch(43.89, 66.91, 314.48°)
OKLaboklab(53.63% 0.1071 -0.1345)
OKLCHoklch(53.63% 0.172 308.5)
XYZxyz(21.5800, 13.7619, 46.8576)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AB8 #78B84A
analogous
#534AB8 #8A4AB8 #B84AAF
triadic
#8A4AB8 #B88A4A #4AB88A
tetradic
#8A4AB8 #B8534A #78B84A #4AAFB8
square
#8A4AB8 #B8534A #78B84A #4AAFB8
split-complementary
#8A4AB8 #AFB84A #4AB853
monochromatic
#492661 #69378D #8A4AB8 #A676C9 #C3A2DA

Accessibility & contrast

On white

5.60
#8A4AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8A4AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AB8
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AB8#FFFFFF#000000##FFFFFF
##8A4AB81.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D65BC
Deuteranopia (green-blind)
#3B69B5
Tritanopia (blue-blind)
#835F7A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4ab8;
/* rgb */ color: rgb(138, 74, 184);
/* oklch */ color: oklch(53.6% 0.172 308.5);
Tailwind
colors: {
  custom: {
    50: '#af80ce',
    500: '#8a4ab8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ab8;
$custom-light: #af80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ab8",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 184
  },
  "hsl": {
    "h": 274.909,
    "s": 43.651,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53633,
    "c": 0.17194,
    "h": 308.5
  },
  "luminance": 0.13762
}

Semantic roles & 50–950 ramp

primary
#8A4AB8
secondary
#ABC796
accent
#D3548A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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