#8A4EAC#8A4EAC

#8A4EAC is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.5% C 0.152 H 311.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A4EAC
RGBrgb(138, 78, 172)
HSLhsl(278, 38%, 49%)
HSVhsv(278, 55%, 67%)
CMYKcmyk(19.8%, 54.7%, 0%, 32.5%)
CIE-LABlab(43.99, 42.01, -40.53)
CIE-LCHlch(43.99, 58.37, 316.03°)
OKLaboklab(53.48% 0.1014 -0.1134)
OKLCHoklch(53.48% 0.152 311.8)
XYZxyz(20.6507, 13.8311, 40.6035)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EAC #70AC4E
analogous
#5B4EAC #8A4EAC #AC4E9F
triadic
#8A4EAC #AC8A4E #4EAC8A
tetradic
#8A4EAC #AC5B4E #70AC4E #4E9FAC
square
#8A4EAC #AC5B4E #70AC4E #4E9FAC
split-complementary
#8A4EAC #9FAC4E #4EAC5B
monochromatic
#462858 #683B82 #8A4EAC #A676C1 #C1A0D4

Accessibility & contrast

On white

5.58
#8A4EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A4EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EAC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EAC#FFFFFF#000000##FFFFFF
##8A4EAC1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3465AF
Deuteranopia (green-blind)
#4869AA
Tritanopia (blue-blind)
#865E75
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4eac;
/* rgb */ color: rgb(138, 78, 172);
/* oklch */ color: oklch(53.5% 0.152 311.8);
Tailwind
colors: {
  custom: {
    50: '#ae82c5',
    500: '#8a4eac',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eac;
$custom-light: #ae82c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eac",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 278.298,
    "s": 37.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53481,
    "c": 0.15215,
    "h": 311.8
  },
  "luminance": 0.13831
}

Semantic roles & 50–950 ramp

primary
#8A4EAC
secondary
#A5C195
accent
#CE5A84
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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