#8A4B97#8A4B97

#8A4B97 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 51.8% C 0.134 H 320.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A4B97
RGBrgb(138, 75, 151)
HSLhsl(290, 34%, 44%)
HSVhsv(290, 50%, 59%)
CMYKcmyk(8.6%, 50.3%, 0%, 40.8%)
CIE-LABlab(42.26, 39.07, -30.75)
CIE-LCHlch(42.26, 49.72, 321.79°)
OKLaboklab(51.85% 0.1034 -0.085)
OKLCHoklch(51.85% 0.134 320.6)
XYZxyz(18.5826, 12.6705, 30.7390)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4B97 #58974B
analogous
#644B97 #8A4B97 #974B7E
triadic
#8A4B97 #978A4B #4B978A
tetradic
#8A4B97 #97644B #58974B #4B7E97
square
#8A4B97 #97644B #58974B #4B7E97
split-complementary
#8A4B97 #7E974B #4B9764
monochromatic
#3F2245 #65376E #8A4B97 #A86AB5 #C093C9

Accessibility & contrast

On white

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

On black

3.53
#8A4B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A4B97#FFFFFF#000000##FFFFFF
##8A4B971.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5F9A
Deuteranopia (green-blind)
#526695
Tritanopia (blue-blind)
#8B556A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a4b97;
/* rgb */ color: rgb(138, 75, 151);
/* oklch */ color: oklch(51.8% 0.134 320.6);
Tailwind
colors: {
  custom: {
    50: '#ae80b6',
    500: '#8a4b97',
    950: '#000000',
  },
}
SCSS
$custom: #8a4b97;
$custom-light: #ae80b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4b97",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 151
  },
  "hsl": {
    "h": 289.737,
    "s": 33.628,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51846,
    "c": 0.13389,
    "h": 320.6
  },
  "luminance": 0.1267
}

Semantic roles & 50–950 ramp

primary
#8A4B97
secondary
#90B688
accent
#CA5E70
background
#FAF7FB
surface
#F5EEF6
border
#CFC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4B97

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

Preview Lab → · Contrast checker → · Palette generator →

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