#8A7FA4#8A7FA4

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

Color values

HEX#8A7FA4
RGBrgb(138, 127, 164)
HSLhsl(258, 17%, 57%)
HSVhsv(258, 23%, 64%)
CMYKcmyk(15.9%, 22.6%, 0%, 35.7%)
CIE-LABlab(55.34, 11.87, -18.18)
CIE-LCHlch(55.34, 21.71, 303.14°)
OKLaboklab(61.95% 0.0268 -0.0496)
OKLCHoklch(61.95% 0.056 298.4)
XYZxyz(24.7701, 23.2623, 38.2999)
Luminance0.2326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FA4 #99A47F
analogous
#7F87A4 #8A7FA4 #9D7FA4
triadic
#8A7FA4 #A48A7F #7FA48A
tetradic
#8A7FA4 #A47F87 #99A47F #7FA49D
square
#8A7FA4 #A47F87 #99A47F #7FA49D
split-complementary
#8A7FA4 #A49D7F #87A47F
monochromatic
#4F4663 #6B5F86 #8A7FA4 #ABA3BD #CBC7D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7FA4#FFFFFF#000000##000000
##8A7FA41.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)
#7785A6
Deuteranopia (green-blind)
#7984A3
Tritanopia (blue-blind)
#85848C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7fa4;
/* rgb */ color: rgb(138, 127, 164);
/* oklch */ color: oklch(62.0% 0.056 298.4);
Tailwind
colors: {
  custom: {
    50: '#aca4bf',
    500: '#8a7fa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fa4;
$custom-light: #aca4bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fa4",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 164
  },
  "hsl": {
    "h": 257.838,
    "s": 16.895,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61954,
    "c": 0.05636,
    "h": 298.4
  },
  "luminance": 0.23262
}

Semantic roles & 50–950 ramp

primary
#8A7FA4
secondary
#C2C7B8
accent
#BA6EA3
background
#FAFAFB
surface
#F4F4F7
border
#CECED0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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