#8A6796#8A6796

#8A6796 is a mid, moderate purple. Relative luminance 0.173; OKLCH L 56.6% C 0.081 H 317.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A6796
RGBrgb(138, 103, 150)
HSLhsl(285, 19%, 50%)
HSVhsv(285, 31%, 59%)
CMYKcmyk(8%, 31.3%, 0%, 41.2%)
CIE-LABlab(48.64, 22.84, -20.25)
CIE-LCHlch(48.64, 30.53, 318.45°)
OKLaboklab(56.63% 0.0599 -0.0552)
OKLCHoklch(56.63% 0.081 317.3)
XYZxyz(20.8357, 17.3062, 31.0911)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6796 #739667
analogous
#736796 #8A6796 #96678B
triadic
#8A6796 #968A67 #67968A
tetradic
#8A6796 #967367 #739667 #678B96
square
#8A6796 #967367 #739667 #678B96
split-complementary
#8A6796 #8B9667 #679673
monochromatic
#47354D #694E72 #8A6796 #A68BAF #C2AFC8

Accessibility & contrast

On white

4.71
#8A6796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A6796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A6796
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6796#FFFFFF#000000##FFFFFF
##8A67961.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#617198
Deuteranopia (green-blind)
#697594
Tritanopia (blue-blind)
#8A6C78
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a6796;
/* rgb */ color: rgb(138, 103, 150);
/* oklch */ color: oklch(56.6% 0.081 317.3);
Tailwind
colors: {
  custom: {
    50: '#ac93b5',
    500: '#8a6796',
    950: '#000000',
  },
}
SCSS
$custom: #8a6796;
$custom-light: #ac93b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6796",
  "rgb": {
    "r": 138,
    "g": 103,
    "b": 150
  },
  "hsl": {
    "h": 284.681,
    "s": 18.577,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5663,
    "c": 0.08146,
    "h": 317.3
  },
  "luminance": 0.17306
}

Semantic roles & 50–950 ramp

primary
#8A6796
secondary
#A7B7A2
accent
#BB6D81
background
#FAF9FB
surface
#F4F1F6
border
#CECBD0
text
#100D11
muted
#7F7E80

Preview Lab

Preview with #8A6796

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

Preview Lab → · Contrast checker → · Palette generator →

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