#8A7EA3#8A7EA3

#8A7EA3 is a mid, muted violet. Relative luminance 0.230; OKLCH L 61.7% C 0.057 H 299.6°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A7EA3
RGBrgb(138, 126, 163)
HSLhsl(259, 17%, 57%)
HSVhsv(259, 23%, 64%)
CMYKcmyk(15.3%, 22.7%, 0%, 36.1%)
CIE-LABlab(55.04, 12.22, -18.06)
CIE-LCHlch(55.04, 21.81, 304.09°)
OKLaboklab(61.71% 0.028 -0.0493)
OKLCHoklch(61.71% 0.057 299.6)
XYZxyz(24.5516, 22.9693, 37.7833)
Luminance0.2297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EA3 #97A37E
analogous
#7E85A3 #8A7EA3 #9D7EA3
triadic
#8A7EA3 #A38A7E #7EA38A
tetradic
#8A7EA3 #A37E85 #97A37E #7EA39D
square
#8A7EA3 #A37E85 #97A37E #7EA39D
split-complementary
#8A7EA3 #A39D7E #85A37E
monochromatic
#4E4561 #6B5F85 #8A7EA3 #AAA2BC #CBC5D6

Accessibility & contrast

On white

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

On black

5.59
#8A7EA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EA3
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EA3#FFFFFF#000000##000000
##8A7EA31.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7784A5
Deuteranopia (green-blind)
#7884A2
Tritanopia (blue-blind)
#86838B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7ea3;
/* rgb */ color: rgb(138, 126, 163);
/* oklch */ color: oklch(61.7% 0.057 299.6);
Tailwind
colors: {
  custom: {
    50: '#aca3be',
    500: '#8a7ea3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ea3;
$custom-light: #aca3be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ea3",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 163
  },
  "hsl": {
    "h": 259.459,
    "s": 16.742,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61709,
    "c": 0.05665,
    "h": 299.6
  },
  "luminance": 0.22969
}

Semantic roles & 50–950 ramp

primary
#8A7EA3
secondary
#C1C6B7
accent
#B96EA1
background
#FAFAFB
surface
#F4F3F6
border
#CECDD0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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