#8A4E8A#8A4E8A

#8A4E8A is a mid, moderate purple. Relative luminance 0.127; OKLCH L 51.7% C 0.115 H 327.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A4E8A
RGBrgb(138, 78, 138)
HSLhsl(300, 28%, 42%)
HSVhsv(300, 43%, 54%)
CMYKcmyk(0%, 43.5%, 0%, 45.9%)
CIE-LABlab(42.29, 34.78, -22.86)
CIE-LCHlch(42.29, 41.62, 326.68°)
OKLaboklab(51.67% 0.0965 -0.0625)
OKLCHoklch(51.67% 0.115 327.1)
XYZxyz(17.7927, 12.6879, 25.5516)
Luminance0.1269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E8A #4E8A4E
analogous
#6C4E8A #8A4E8A #8A4E6C
triadic
#8A4E8A #8A8A4E #4E8A8A
tetradic
#8A4E8A #8A6C4E #4E8A4E #4E6C8A
square
#8A4E8A #8A6C4E #4E8A4E #4E6C8A
split-complementary
#8A4E8A #6C8A4E #4E8A6C
monochromatic
#3C223C #633863 #8A4E8A #AB6AAB #C191C1

Accessibility & contrast

On white

5.94
#8A4E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A4E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E8A
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E8A#FFFFFF#000000##FFFFFF
##8A4E8A1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495F8C
Deuteranopia (green-blind)
#596788
Tritanopia (blue-blind)
#8D5465
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a4e8a;
/* rgb */ color: rgb(138, 78, 138);
/* oklch */ color: oklch(51.7% 0.115 327.1);
Tailwind
colors: {
  custom: {
    50: '#ad81ac',
    500: '#8a4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e8a;
$custom-light: #ad81ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e8a",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51666,
    "c": 0.11492,
    "h": 327.1
  },
  "luminance": 0.12687
}

Semantic roles & 50–950 ramp

primary
#8A4E8A
secondary
#86AE86
accent
#C46464
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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