#8A4A97#8A4A97

#8A4A97 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 51.7% C 0.136 H 320.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8A4A97
RGBrgb(138, 74, 151)
HSLhsl(290, 34%, 44%)
HSVhsv(290, 51%, 59%)
CMYKcmyk(8.6%, 51%, 0%, 40.8%)
CIE-LABlab(42.06, 39.61, -31.07)
CIE-LCHlch(42.06, 50.34, 321.88°)
OKLaboklab(51.69% 0.1049 -0.086)
OKLCHoklch(51.69% 0.136 320.7)
XYZxyz(18.5153, 12.5359, 30.7165)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4A97 #57974A
analogous
#644A97 #8A4A97 #974A7E
triadic
#8A4A97 #978A4A #4A978A
tetradic
#8A4A97 #97644A #57974A #4A7E97
square
#8A4A97 #97644A #57974A #4A7E97
split-complementary
#8A4A97 #7E974A #4A9764
monochromatic
#3F2245 #64366E #8A4A97 #A869B5 #C092CA

Accessibility & contrast

On white

5.99
#8A4A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A4A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4A97
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4A97#FFFFFF#000000##FFFFFF
##8A4A971.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5F9A
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#8B5469
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a4a97;
/* rgb */ color: rgb(138, 74, 151);
/* oklch */ color: oklch(51.7% 0.136 320.7);
Tailwind
colors: {
  custom: {
    50: '#ae7fb6',
    500: '#8a4a97',
    950: '#000000',
  },
}
SCSS
$custom: #8a4a97;
$custom-light: #ae7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4a97",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 289.87,
    "s": 34.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51693,
    "c": 0.13561,
    "h": 320.7
  },
  "luminance": 0.12535
}

Semantic roles & 50–950 ramp

primary
#8A4A97
secondary
#8FB687
accent
#CA5D70
background
#FAF7FB
surface
#F5EEF6
border
#CFC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4A97

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

Preview Lab → · Contrast checker → · Palette generator →

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