#8A4797#8A4797

#8A4797 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.2% C 0.141 H 320.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8A4797
RGBrgb(138, 71, 151)
HSLhsl(290, 36%, 44%)
HSVhsv(290, 53%, 59%)
CMYKcmyk(8.6%, 53%, 0%, 40.8%)
CIE-LABlab(41.45, 41.21, -32.03)
CIE-LCHlch(41.45, 52.20, 322.14°)
OKLaboklab(51.24% 0.1092 -0.0887)
OKLCHoklch(51.24% 0.141 320.9)
XYZxyz(18.3197, 12.1449, 30.6514)
Luminance0.1214 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4797 #549747
analogous
#624797 #8A4797 #97477C
triadic
#8A4797 #978A47 #47978A
tetradic
#8A4797 #976247 #549747 #477C97
square
#8A4797 #976247 #549747 #477C97
split-complementary
#8A4797 #7C9747 #479762
monochromatic
#3E2044 #64336D #8A4797 #A965B6 #C08ECA

Accessibility & contrast

On white

6.12
#8A4797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A4797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4797
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4797#FFFFFF#000000##FFFFFF
##8A47971.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5D9A
Deuteranopia (green-blind)
#4E6495
Tritanopia (blue-blind)
#8B5268
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a4797;
/* rgb */ color: rgb(138, 71, 151);
/* oklch */ color: oklch(51.2% 0.141 320.9);
Tailwind
colors: {
  custom: {
    50: '#ae7db6',
    500: '#8a4797',
    950: '#000000',
  },
}
SCSS
$custom: #8a4797;
$custom-light: #ae7db6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4797",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 290.25,
    "s": 36.036,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51242,
    "c": 0.14073,
    "h": 320.9
  },
  "luminance": 0.12144
}

Semantic roles & 50–950 ramp

primary
#8A4797
secondary
#8CB684
accent
#CC5C6E
background
#FAF7FB
surface
#F5EEF6
border
#CFC9D0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4797

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

Preview Lab → · Contrast checker → · Palette generator →

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