#8A7EA4#8A7EA4

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

Color values

HEX#8A7EA4
RGBrgb(138, 126, 164)
HSLhsl(259, 17%, 57%)
HSVhsv(259, 23%, 64%)
CMYKcmyk(15.9%, 23.2%, 0%, 35.7%)
CIE-LABlab(55.08, 12.45, -18.58)
CIE-LCHlch(55.08, 22.37, 303.83°)
OKLaboklab(61.75% 0.0283 -0.0507)
OKLCHoklch(61.75% 0.058 299.2)
XYZxyz(24.6415, 23.0052, 38.2570)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EA4 #98A47E
analogous
#7E85A4 #8A7EA4 #9D7EA4
triadic
#8A7EA4 #A48A7E #7EA48A
tetradic
#8A7EA4 #A47E85 #98A47E #7EA49D
square
#8A7EA4 #A47E85 #98A47E #7EA49D
split-complementary
#8A7EA4 #A49D7E #85A47E
monochromatic
#4E4562 #6B5F86 #8A7EA4 #ABA2BD #CBC6D7

Accessibility & contrast

On white

3.75
#8A7EA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#8A7EA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EA4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EA4#FFFFFF#000000##000000
##8A7EA41.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7684A6
Deuteranopia (green-blind)
#7884A3
Tritanopia (blue-blind)
#86848B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7ea4;
/* rgb */ color: rgb(138, 126, 164);
/* oklch */ color: oklch(61.8% 0.058 299.2);
Tailwind
colors: {
  custom: {
    50: '#aca3bf',
    500: '#8a7ea4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ea4;
$custom-light: #aca3bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ea4",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 164
  },
  "hsl": {
    "h": 258.947,
    "s": 17.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.6175,
    "c": 0.05808,
    "h": 299.2
  },
  "luminance": 0.23005
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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