#8A4A8D#8A4A8D

#8A4A8D is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.2% C 0.125 H 325.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8A4A8D
RGBrgb(138, 74, 141)
HSLhsl(297, 31%, 42%)
HSVhsv(297, 48%, 55%)
CMYKcmyk(2.1%, 47.5%, 0%, 44.7%)
CIE-LABlab(41.57, 37.58, -25.80)
CIE-LCHlch(41.57, 45.58, 325.53°)
OKLaboklab(51.18% 0.1033 -0.0708)
OKLCHoklch(51.18% 0.125 325.6)
XYZxyz(17.7373, 12.2248, 26.6195)
Luminance0.1222 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4A8D #4D8D4A
analogous
#684A8D #8A4A8D #8D4A6F
triadic
#8A4A8D #8D8A4A #4A8D8A
tetradic
#8A4A8D #8D684A #4D8D4A #4A6F8D
square
#8A4A8D #8D684A #4D8D4A #4A6F8D
split-complementary
#8A4A8D #6F8D4A #4A8D68
monochromatic
#3B203D #633565 #8A4A8D #AB66AF #C18EC4

Accessibility & contrast

On white

6.10
#8A4A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8A4A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4A8D
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4A8D#FFFFFF#000000##FFFFFF
##8A4A8D1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435D8F
Deuteranopia (green-blind)
#55658B
Tritanopia (blue-blind)
#8D5165
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a4a8d;
/* rgb */ color: rgb(138, 74, 141);
/* oklch */ color: oklch(51.2% 0.125 325.6);
Tailwind
colors: {
  custom: {
    50: '#ae7fae',
    500: '#8a4a8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a4a8d;
$custom-light: #ae7fae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4a8d",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 141
  },
  "hsl": {
    "h": 297.313,
    "s": 31.163,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51175,
    "c": 0.12519,
    "h": 325.6
  },
  "luminance": 0.12224
}

Semantic roles & 50–950 ramp

primary
#8A4A8D
secondary
#85B083
accent
#C76065
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A4A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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