#8A4EA1#8A4EA1

#8A4EA1 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 52.9% C 0.140 H 315.9°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8A4EA1
RGBrgb(138, 78, 161)
HSLhsl(283, 35%, 47%)
HSVhsv(283, 52%, 63%)
CMYKcmyk(14.3%, 51.6%, 0%, 36.9%)
CIE-LABlab(43.40, 39.56, -34.94)
CIE-LCHlch(43.40, 52.78, 318.55°)
OKLaboklab(52.85% 0.1004 -0.0972)
OKLCHoklch(52.85% 0.14 315.9)
XYZxyz(19.6377, 13.4259, 35.2683)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EA1 #65A14E
analogous
#604EA1 #8A4EA1 #A14E8F
triadic
#8A4EA1 #A18A4E #4EA18A
tetradic
#8A4EA1 #A1604E #65A14E #4E8FA1
square
#8A4EA1 #A1604E #65A14E #4E8FA1
split-complementary
#8A4EA1 #8FA14E #4EA160
monochromatic
#43264F #673A78 #8A4EA1 #A672BB #C09BCF

Accessibility & contrast

On white

5.70
#8A4EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A4EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EA1
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EA1#FFFFFF#000000##FFFFFF
##8A4EA11.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A4
Deuteranopia (green-blind)
#4F689F
Tritanopia (blue-blind)
#895B70
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4ea1;
/* rgb */ color: rgb(138, 78, 161);
/* oklch */ color: oklch(52.9% 0.140 315.9);
Tailwind
colors: {
  custom: {
    50: '#ae82bd',
    500: '#8a4ea1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ea1;
$custom-light: #ae82bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ea1",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 283.373,
    "s": 34.728,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52853,
    "c": 0.13972,
    "h": 315.9
  },
  "luminance": 0.13425
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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