#8A7EA6#8A7EA6

#8A7EA6 is a mid, moderate violet. Relative luminance 0.231; OKLCH L 61.8% C 0.061 H 298.4°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A7EA6
RGBrgb(138, 126, 166)
HSLhsl(258, 18%, 57%)
HSVhsv(258, 24%, 65%)
CMYKcmyk(16.9%, 24.1%, 0%, 34.9%)
CIE-LABlab(55.15, 12.91, -19.62)
CIE-LCHlch(55.15, 23.49, 303.35°)
OKLaboklab(61.83% 0.029 -0.0536)
OKLCHoklch(61.83% 0.061 298.4)
XYZxyz(24.8236, 23.0781, 39.2157)
Luminance0.2308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EA6 #9AA67E
analogous
#7E86A6 #8A7EA6 #9E7EA6
triadic
#8A7EA6 #A68A7E #7EA68A
tetradic
#8A7EA6 #A67E86 #9AA67E #7EA69E
square
#8A7EA6 #A67E86 #9AA67E #7EA69E
split-complementary
#8A7EA6 #A69E7E #86A67E
monochromatic
#4F4564 #6B5E89 #8A7EA6 #ABA2BF #CCC6D8

Accessibility & contrast

On white

3.74
#8A7EA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8A7EA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EA6
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EA6#FFFFFF#000000##000000
##8A7EA61.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7684A8
Deuteranopia (green-blind)
#7784A5
Tritanopia (blue-blind)
#85848C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7ea6;
/* rgb */ color: rgb(138, 126, 166);
/* oklch */ color: oklch(61.8% 0.061 298.4);
Tailwind
colors: {
  custom: {
    50: '#aca3c0',
    500: '#8a7ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ea6;
$custom-light: #aca3c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ea6",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 166
  },
  "hsl": {
    "h": 258,
    "s": 18.349,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61833,
    "c": 0.06096,
    "h": 298.4
  },
  "luminance": 0.23078
}

Semantic roles & 50–950 ramp

primary
#8A7EA6
secondary
#C3C8B8
accent
#BB6DA4
background
#FAFAFB
surface
#F4F3F7
border
#CECDD0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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