#8A7CA6#8A7CA6

#8A7CA6 is a mid, moderate violet. Relative luminance 0.226; OKLCH L 61.4% C 0.064 H 299.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A7CA6
RGBrgb(138, 124, 166)
HSLhsl(260, 19%, 57%)
HSVhsv(260, 25%, 65%)
CMYKcmyk(16.9%, 25.3%, 0%, 34.9%)
CIE-LABlab(54.63, 14.08, -20.42)
CIE-LCHlch(54.63, 24.81, 304.59°)
OKLaboklab(61.43% 0.032 -0.0559)
OKLCHoklch(61.43% 0.064 299.8)
XYZxyz(24.5704, 22.5717, 39.1313)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CA6 #98A67C
analogous
#7C83A6 #8A7CA6 #9F7CA6
triadic
#8A7CA6 #A68A7C #7CA68A
tetradic
#8A7CA6 #A67C83 #98A67C #7CA69F
square
#8A7CA6 #A67C83 #98A67C #7CA69F
split-complementary
#8A7CA6 #A69F7C #83A67C
monochromatic
#4E4464 #6B5D88 #8A7CA6 #ABA0BF #CBC5D8

Accessibility & contrast

On white

3.81
#8A7CA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8A7CA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CA6
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CA6#FFFFFF#000000##000000
##8A7CA61.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7383A8
Deuteranopia (green-blind)
#7682A5
Tritanopia (blue-blind)
#85828B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a7ca6;
/* rgb */ color: rgb(138, 124, 166);
/* oklch */ color: oklch(61.4% 0.064 299.8);
Tailwind
colors: {
  custom: {
    50: '#aca2c0',
    500: '#8a7ca6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ca6;
$custom-light: #aca2c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ca6",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 166
  },
  "hsl": {
    "h": 260,
    "s": 19.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61428,
    "c": 0.06439,
    "h": 299.8
  },
  "luminance": 0.22572
}

Semantic roles & 50–950 ramp

primary
#8A7CA6
secondary
#C2C7B6
accent
#BC6CA1
background
#FAF9FB
surface
#F4F2F7
border
#CECCD0
text
#100F12
muted
#7F7E81

Preview Lab

Preview with #8A7CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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