#8A4EA0#8A4EA0

#8A4EA0 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 52.8% C 0.139 H 316.3°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A4EA0
RGBrgb(138, 78, 160)
HSLhsl(284, 34%, 47%)
HSVhsv(284, 51%, 63%)
CMYKcmyk(13.8%, 51.2%, 0%, 37.3%)
CIE-LABlab(43.35, 39.34, -34.43)
CIE-LCHlch(43.35, 52.28, 318.81°)
OKLaboklab(52.8% 0.1003 -0.0957)
OKLCHoklch(52.8% 0.139 316.3)
XYZxyz(19.5498, 13.3907, 34.8057)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EA0 #64A04E
analogous
#614EA0 #8A4EA0 #A04E8D
triadic
#8A4EA0 #A08A4E #4EA08A
tetradic
#8A4EA0 #A0614E #64A04E #4E8DA0
square
#8A4EA0 #A0614E #64A04E #4E8DA0
split-complementary
#8A4EA0 #8DA04E #4EA061
monochromatic
#43264E #673A77 #8A4EA0 #A671BA #C09ACE

Accessibility & contrast

On white

5.71
#8A4EA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A4EA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EA0
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EA0#FFFFFF#000000##FFFFFF
##8A4EA01.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A3
Deuteranopia (green-blind)
#4F689E
Tritanopia (blue-blind)
#895A70
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4ea0;
/* rgb */ color: rgb(138, 78, 160);
/* oklch */ color: oklch(52.8% 0.139 316.3);
Tailwind
colors: {
  custom: {
    50: '#ae82bc',
    500: '#8a4ea0',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ea0;
$custom-light: #ae82bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ea0",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 160
  },
  "hsl": {
    "h": 283.902,
    "s": 34.454,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52797,
    "c": 0.1386,
    "h": 316.3
  },
  "luminance": 0.1339
}

Semantic roles & 50–950 ramp

primary
#8A4EA0
secondary
#9BBB8F
accent
#CB5D7B
background
#FAF8FB
surface
#F5EFF6
border
#CFCAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #8A4EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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