#8A4EA6#8A4EA6

#8A4EA6 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.1% C 0.145 H 314.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A4EA6
RGBrgb(138, 78, 166)
HSLhsl(281, 36%, 48%)
HSVhsv(281, 53%, 65%)
CMYKcmyk(16.9%, 53%, 0%, 34.9%)
CIE-LABlab(43.66, 40.66, -37.50)
CIE-LCHlch(43.66, 55.31, 317.32°)
OKLaboklab(53.13% 0.1009 -0.1046)
OKLCHoklch(53.13% 0.145 314)
XYZxyz(20.0874, 13.6058, 37.6370)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EA6 #6AA64E
analogous
#5E4EA6 #8A4EA6 #A64E96
triadic
#8A4EA6 #A68A4E #4EA68A
tetradic
#8A4EA6 #A65E4E #6AA64E #4E96A6
square
#8A4EA6 #A65E4E #6AA64E #4E96A6
split-complementary
#8A4EA6 #96A64E #4EA65E
monochromatic
#452753 #673A7C #8A4EA6 #A674BE #C19DD1

Accessibility & contrast

On white

5.64
#8A4EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A4EA6
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EA6#FFFFFF#000000##FFFFFF
##8A4EA61.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3964A9
Deuteranopia (green-blind)
#4C69A4
Tritanopia (blue-blind)
#885C72
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4ea6;
/* rgb */ color: rgb(138, 78, 166);
/* oklch */ color: oklch(53.1% 0.145 314.0);
Tailwind
colors: {
  custom: {
    50: '#ae82c1',
    500: '#8a4ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ea6;
$custom-light: #ae82c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ea6",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 280.909,
    "s": 36.066,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53134,
    "c": 0.14534,
    "h": 314
  },
  "luminance": 0.13605
}

Semantic roles & 50–950 ramp

primary
#8A4EA6
secondary
#A0BE92
accent
#CC5C7F
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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