#8A4AB7#8A4AB7

#8A4AB7 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.171 H 308.8°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A4AB7
RGBrgb(138, 74, 183)
HSLhsl(275, 43%, 50%)
HSVhsv(275, 60%, 72%)
CMYKcmyk(24.6%, 59.6%, 0%, 28.2%)
CIE-LABlab(43.83, 46.65, -47.25)
CIE-LCHlch(43.83, 66.40, 314.64°)
OKLaboklab(53.57% 0.1071 -0.1331)
OKLCHoklch(53.57% 0.171 308.8)
XYZxyz(21.4756, 13.7201, 46.3075)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AB7 #77B74A
analogous
#534AB7 #8A4AB7 #B74AAE
triadic
#8A4AB7 #B78A4A #4AB78A
tetradic
#8A4AB7 #B7534A #77B74A #4AAEB7
square
#8A4AB7 #B7534A #77B74A #4AAEB7
split-complementary
#8A4AB7 #AEB74A #4AB753
monochromatic
#482660 #69388C #8A4AB7 #A676C8 #C3A2DA

Accessibility & contrast

On white

5.61
#8A4AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A4AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AB7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AB7#FFFFFF#000000##FFFFFF
##8A4AB71.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BA
Deuteranopia (green-blind)
#3B68B4
Tritanopia (blue-blind)
#845F79
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4ab7;
/* rgb */ color: rgb(138, 74, 183);
/* oklch */ color: oklch(53.6% 0.171 308.8);
Tailwind
colors: {
  custom: {
    50: '#af80cd',
    500: '#8a4ab7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ab7;
$custom-light: #af80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ab7",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 275.229,
    "s": 43.083,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5357,
    "c": 0.17082,
    "h": 308.8
  },
  "luminance": 0.1372
}

Semantic roles & 50–950 ramp

primary
#8A4AB7
secondary
#AAC796
accent
#D35589
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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