#8A7EA5#8A7EA5

#8A7EA5 is a mid, muted violet. Relative luminance 0.230; OKLCH L 61.8% C 0.060 H 298.7°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A7EA5
RGBrgb(138, 126, 165)
HSLhsl(258, 18%, 57%)
HSVhsv(258, 24%, 65%)
CMYKcmyk(16.4%, 23.6%, 0%, 35.3%)
CIE-LABlab(55.12, 12.68, -19.10)
CIE-LCHlch(55.12, 22.93, 303.58°)
OKLaboklab(61.79% 0.0286 -0.0522)
OKLCHoklch(61.79% 0.06 298.7)
XYZxyz(24.7322, 23.0415, 38.7345)
Luminance0.2304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EA5 #99A57E
analogous
#7E86A5 #8A7EA5 #9E7EA5
triadic
#8A7EA5 #A58A7E #7EA58A
tetradic
#8A7EA5 #A57E86 #99A57E #7EA59E
square
#8A7EA5 #A57E86 #99A57E #7EA59E
split-complementary
#8A7EA5 #A59E7E #86A57E
monochromatic
#4F4563 #6B5E87 #8A7EA5 #ABA2BE #CBC6D7

Accessibility & contrast

On white

3.74
#8A7EA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#8A7EA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EA5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EA5#FFFFFF#000000##000000
##8A7EA51.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7684A7
Deuteranopia (green-blind)
#7884A4
Tritanopia (blue-blind)
#85848B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7ea5;
/* rgb */ color: rgb(138, 126, 165);
/* oklch */ color: oklch(61.8% 0.060 298.7);
Tailwind
colors: {
  custom: {
    50: '#aca3bf',
    500: '#8a7ea5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ea5;
$custom-light: #aca3bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ea5",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 165
  },
  "hsl": {
    "h": 258.462,
    "s": 17.808,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61791,
    "c": 0.05951,
    "h": 298.7
  },
  "luminance": 0.23042
}

Semantic roles & 50–950 ramp

primary
#8A7EA5
secondary
#C2C7B7
accent
#BA6DA3
background
#FAFAFB
surface
#F4F3F7
border
#CECDD0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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