#8A7FA3#8A7FA3

#8A7FA3 is a mid, muted violet. Relative luminance 0.232; OKLCH L 61.9% C 0.055 H 298.8°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8A7FA3
RGBrgb(138, 127, 163)
HSLhsl(258, 16%, 57%)
HSVhsv(258, 22%, 64%)
CMYKcmyk(15.3%, 22.1%, 0%, 36.1%)
CIE-LABlab(55.30, 11.64, -17.66)
CIE-LCHlch(55.30, 21.15, 303.39°)
OKLaboklab(61.91% 0.0264 -0.0481)
OKLCHoklch(61.91% 0.055 298.8)
XYZxyz(24.6801, 23.2263, 37.8261)
Luminance0.2323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FA3 #98A37F
analogous
#7F86A3 #8A7FA3 #9C7FA3
triadic
#8A7FA3 #A38A7F #7FA38A
tetradic
#8A7FA3 #A37F86 #98A37F #7FA39C
square
#8A7FA3 #A37F86 #98A37F #7FA39C
split-complementary
#8A7FA3 #A39C7F #86A37F
monochromatic
#4E4662 #6B6085 #8A7FA3 #ABA3BD #CBC6D6

Accessibility & contrast

On white

3.72
#8A7FA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#8A7FA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FA3
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FA3#FFFFFF#000000##000000
##8A7FA31.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7fa3;
/* rgb */ color: rgb(138, 127, 163);
/* oklch */ color: oklch(61.9% 0.055 298.8);
Tailwind
colors: {
  custom: {
    50: '#aca4be',
    500: '#8a7fa3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fa3;
$custom-light: #aca4be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fa3",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 163
  },
  "hsl": {
    "h": 258.333,
    "s": 16.364,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61913,
    "c": 0.05492,
    "h": 298.8
  },
  "luminance": 0.23226
}

Semantic roles & 50–950 ramp

primary
#8A7FA3
secondary
#C2C6B8
accent
#B96FA2
background
#FAFAFB
surface
#F4F4F6
border
#CECED0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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