#8A6197#8A6197

#8A6197 is a mid, moderate purple. Relative luminance 0.162; OKLCH L 55.6% C 0.094 H 317.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A6197
RGBrgb(138, 97, 151)
HSLhsl(286, 22%, 49%)
HSVhsv(286, 36%, 59%)
CMYKcmyk(8.6%, 35.8%, 0%, 40.8%)
CIE-LABlab(47.22, 26.58, -23.03)
CIE-LCHlch(47.22, 35.17, 319.09°)
OKLaboklab(55.56% 0.0696 -0.0631)
OKLCHoklch(55.56% 0.094 317.8)
XYZxyz(20.3411, 16.1875, 31.3251)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6197 #6E9761
analogous
#6F6197 #8A6197 #976189
triadic
#8A6197 #978A61 #61978A
tetradic
#8A6197 #976F61 #6E9761 #618997
square
#8A6197 #976F61 #6E9761 #618997
split-complementary
#8A6197 #899761 #61976F
monochromatic
#46314C #684972 #8A6197 #A685B0 #C1AAC8

Accessibility & contrast

On white

4.96
#8A6197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8A6197 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A6197
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6197#FFFFFF#000000##FFFFFF
##8A61971.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A6D99
Deuteranopia (green-blind)
#637195
Tritanopia (blue-blind)
#8A6775
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a6197;
/* rgb */ color: rgb(138, 97, 151);
/* oklch */ color: oklch(55.6% 0.094 317.8);
Tailwind
colors: {
  custom: {
    50: '#ad8eb5',
    500: '#8a6197',
    950: '#000000',
  },
}
SCSS
$custom: #8a6197;
$custom-light: #ad8eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6197",
  "rgb": {
    "r": 138,
    "g": 97,
    "b": 151
  },
  "hsl": {
    "h": 285.556,
    "s": 21.774,
    "l": 48.627
  },
  "oklch": {
    "l": 0.55561,
    "c": 0.09397,
    "h": 317.8
  },
  "luminance": 0.16187
}

Semantic roles & 50–950 ramp

primary
#8A6197
secondary
#A3B79D
accent
#BE697E
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A6197

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

Preview Lab → · Contrast checker → · Palette generator →

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