#8A4197#8A4197

#8A4197 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.4% C 0.151 H 321.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A4197
RGBrgb(138, 65, 151)
HSLhsl(291, 40%, 42%)
HSVhsv(291, 57%, 59%)
CMYKcmyk(8.6%, 57%, 0%, 40.8%)
CIE-LABlab(40.28, 44.33, -33.87)
CIE-LCHlch(40.28, 55.79, 322.61°)
OKLaboklab(50.38% 0.1177 -0.094)
OKLCHoklch(50.38% 0.151 321.4)
XYZxyz(17.9568, 11.4191, 30.5304)
Luminance0.1142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4197 #4E9741
analogous
#5F4197 #8A4197 #974179
triadic
#8A4197 #978A41 #41978A
tetradic
#8A4197 #975F41 #4E9741 #417997
square
#8A4197 #975F41 #4E9741 #417997
split-complementary
#8A4197 #799741 #41975F
monochromatic
#3C1C41 #632F6C #8A4197 #AB5CB9 #C187CB

Accessibility & contrast

On white

6.40
#8A4197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A4197 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4197
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4197#FFFFFF#000000##FFFFFF
##8A41971.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9A
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#8B4D66
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a4197;
/* rgb */ color: rgb(138, 65, 151);
/* oklch */ color: oklch(50.4% 0.151 321.4);
Tailwind
colors: {
  custom: {
    50: '#ae79b6',
    500: '#8a4197',
    950: '#000000',
  },
}
SCSS
$custom: #8a4197;
$custom-light: #ae79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4197",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 290.93,
    "s": 39.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50384,
    "c": 0.15062,
    "h": 321.4
  },
  "luminance": 0.11418
}

Semantic roles & 50–950 ramp

primary
#8A4197
secondary
#86B67E
accent
#D0586A
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A4197

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

Preview Lab → · Contrast checker → · Palette generator →

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