#8A4C8B#8A4C8B

#8A4C8B is a mid, moderate purple. Relative luminance 0.124; OKLCH L 51.4% C 0.120 H 326.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8A4C8B
RGBrgb(138, 76, 139)
HSLhsl(299, 29%, 42%)
HSVhsv(299, 45%, 55%)
CMYKcmyk(0.7%, 45.3%, 0%, 45.5%)
CIE-LABlab(41.90, 36.08, -24.07)
CIE-LCHlch(41.90, 43.38, 326.30°)
OKLaboklab(51.39% 0.0998 -0.0659)
OKLCHoklch(51.39% 0.12 326.6)
XYZxyz(17.7255, 12.4371, 25.8880)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4C8B #4D8B4C
analogous
#6B4C8B #8A4C8B #8B4C6C
triadic
#8A4C8B #8B8A4C #4C8B8A
tetradic
#8A4C8B #8B6B4C #4D8B4C #4C6C8B
square
#8A4C8B #8B6B4C #4D8B4C #4C6C8B
split-complementary
#8A4C8B #6C8B4C #4C8B6B
monochromatic
#3B213C #633663 #8A4C8B #AB68AC #C18FC2

Accessibility & contrast

On white

6.02
#8A4C8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8A4C8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4C8B
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4C8B#FFFFFF#000000##FFFFFF
##8A4C8B1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465E8D
Deuteranopia (green-blind)
#586689
Tritanopia (blue-blind)
#8D5365
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a4c8b;
/* rgb */ color: rgb(138, 76, 139);
/* oklch */ color: oklch(51.4% 0.120 326.6);
Tailwind
colors: {
  custom: {
    50: '#ae80ad',
    500: '#8a4c8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a4c8b;
$custom-light: #ae80ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4c8b",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 299.048,
    "s": 29.302,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51392,
    "c": 0.11958,
    "h": 326.6
  },
  "luminance": 0.12436
}

Semantic roles & 50–950 ramp

primary
#8A4C8B
secondary
#85AE85
accent
#C66264
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A4C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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