#8A4F8A#8A4F8A

#8A4F8A is a mid, moderate purple. Relative luminance 0.128; OKLCH L 51.8% C 0.113 H 327.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A4F8A
RGBrgb(138, 79, 138)
HSLhsl(300, 27%, 43%)
HSVhsv(300, 43%, 54%)
CMYKcmyk(0%, 42.8%, 0%, 45.9%)
CIE-LABlab(42.51, 34.22, -22.53)
CIE-LCHlch(42.51, 40.97, 326.65°)
OKLaboklab(51.83% 0.0949 -0.0615)
OKLCHoklch(51.83% 0.113 327.1)
XYZxyz(17.8643, 12.8311, 25.5755)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4F8A #4F8A4F
analogous
#6C4F8A #8A4F8A #8A4F6C
triadic
#8A4F8A #8A8A4F #4F8A8A
tetradic
#8A4F8A #8A6C4F #4F8A4F #4F6C8A
square
#8A4F8A #8A6C4F #4F8A4F #4F6C8A
split-complementary
#8A4F8A #6C8A4F #4F8A6C
monochromatic
#3C223C #633963 #8A4F8A #AB6CAB #C193C1

Accessibility & contrast

On white

5.89
#8A4F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A4F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4F8A
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4F8A#FFFFFF#000000##FFFFFF
##8A4F8A1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A608C
Deuteranopia (green-blind)
#5A6788
Tritanopia (blue-blind)
#8D5566
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a4f8a;
/* rgb */ color: rgb(138, 79, 138);
/* oklch */ color: oklch(51.8% 0.113 327.1);
Tailwind
colors: {
  custom: {
    50: '#ad82ac',
    500: '#8a4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a4f8a;
$custom-light: #ad82ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4f8a",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 27.189,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51829,
    "c": 0.1131,
    "h": 327.1
  },
  "luminance": 0.1283
}

Semantic roles & 50–950 ramp

primary
#8A4F8A
secondary
#87AE87
accent
#C46464
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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