#8A4AB4#8A4AB4

#8A4AB4 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.4% C 0.167 H 309.7°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8A4AB4
RGBrgb(138, 74, 180)
HSLhsl(276, 42%, 50%)
HSVhsv(276, 59%, 71%)
CMYKcmyk(23.3%, 58.9%, 0%, 29.4%)
CIE-LABlab(43.65, 45.96, -45.78)
CIE-LCHlch(43.65, 64.87, 315.11°)
OKLaboklab(53.38% 0.1071 -0.1288)
OKLCHoklch(53.38% 0.167 309.7)
XYZxyz(21.1666, 13.5965, 44.6805)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AB4 #74B44A
analogous
#554AB4 #8A4AB4 #B44AA9
triadic
#8A4AB4 #B48A4A #4AB48A
tetradic
#8A4AB4 #B4554A #74B44A #4AA9B4
square
#8A4AB4 #B4554A #74B44A #4AA9B4
split-complementary
#8A4AB4 #A9B44A #4AB455
monochromatic
#47265D #693889 #8A4AB4 #A675C6 #C2A0D8

Accessibility & contrast

On white

5.65
#8A4AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8A4AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AB4
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AB4#FFFFFF#000000##FFFFFF
##8A4AB41.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2464B7
Deuteranopia (green-blind)
#3E68B1
Tritanopia (blue-blind)
#845E78
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4ab4;
/* rgb */ color: rgb(138, 74, 180);
/* oklch */ color: oklch(53.4% 0.167 309.7);
Tailwind
colors: {
  custom: {
    50: '#af80cb',
    500: '#8a4ab4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ab4;
$custom-light: #af80cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ab4",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 276.226,
    "s": 41.732,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5338,
    "c": 0.16747,
    "h": 309.7
  },
  "luminance": 0.13596
}

Semantic roles & 50–950 ramp

primary
#8A4AB4
secondary
#A8C595
accent
#D25687
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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