#8A7FA5#8A7FA5

#8A7FA5 is a mid, muted violet. Relative luminance 0.233; OKLCH L 62.0% C 0.058 H 298.0°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A7FA5
RGBrgb(138, 127, 165)
HSLhsl(257, 17%, 57%)
HSVhsv(257, 23%, 65%)
CMYKcmyk(16.4%, 23%, 0%, 35.3%)
CIE-LABlab(55.38, 12.10, -18.70)
CIE-LCHlch(55.38, 22.27, 302.90°)
OKLaboklab(62% 0.0271 -0.0511)
OKLCHoklch(62% 0.058 298)
XYZxyz(24.8607, 23.2985, 38.7773)
Luminance0.2330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FA5 #9AA57F
analogous
#7F87A5 #8A7FA5 #9D7FA5
triadic
#8A7FA5 #A58A7F #7FA58A
tetradic
#8A7FA5 #A57F87 #9AA57F #7FA59D
square
#8A7FA5 #A57F87 #9AA57F #7FA59D
split-complementary
#8A7FA5 #A59D7F #87A57F
monochromatic
#4F4664 #6B5F88 #8A7FA5 #ABA3BE #CCC7D8

Accessibility & contrast

On white

3.71
#8A7FA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#8A7FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FA5
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FA5#FFFFFF#000000##000000
##8A7FA51.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7785A7
Deuteranopia (green-blind)
#7984A4
Tritanopia (blue-blind)
#85858C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7fa5;
/* rgb */ color: rgb(138, 127, 165);
/* oklch */ color: oklch(62.0% 0.058 298.0);
Tailwind
colors: {
  custom: {
    50: '#aca4bf',
    500: '#8a7fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fa5;
$custom-light: #aca4bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fa5",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 165
  },
  "hsl": {
    "h": 257.368,
    "s": 17.431,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61995,
    "c": 0.05781,
    "h": 298
  },
  "luminance": 0.23299
}

Semantic roles & 50–950 ramp

primary
#8A7FA5
secondary
#C3C8B8
accent
#BA6EA4
background
#FAFAFB
surface
#F4F4F7
border
#CECED0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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