#8A7EAA#8A7EAA

#8A7EAA is a light, moderate violet. Relative luminance 0.232; OKLCH L 62.0% C 0.067 H 296.9°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8A7EAA
RGBrgb(138, 126, 170)
HSLhsl(256, 21%, 58%)
HSVhsv(256, 26%, 67%)
CMYKcmyk(18.8%, 25.9%, 0%, 33.3%)
CIE-LABlab(55.31, 13.84, -21.69)
CIE-LCHlch(55.31, 25.73, 302.55°)
OKLaboklab(62% 0.0302 -0.0595)
OKLCHoklch(62% 0.067 296.9)
XYZxyz(25.1962, 23.2271, 41.1783)
Luminance0.2323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EAA #9EAA7E
analogous
#7E88AA #8A7EAA #A07EAA
triadic
#8A7EAA #AA8A7E #7EAA8A
tetradic
#8A7EAA #AA7E88 #9EAA7E #7EAAA0
square
#8A7EAA #AA7E88 #9EAA7E #7EAAA0
split-complementary
#8A7EAA #AAA07E #88AA7E
monochromatic
#4F4569 #6A5D8E #8A7EAA #ABA3C2 #CDC8DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7EAA#FFFFFF#000000##000000
##8A7EAA1.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)
#7485AC
Deuteranopia (green-blind)
#7684A9
Tritanopia (blue-blind)
#84858D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7eaa;
/* rgb */ color: rgb(138, 126, 170);
/* oklch */ color: oklch(62.0% 0.067 296.9);
Tailwind
colors: {
  custom: {
    50: '#aca3c3',
    500: '#8a7eaa',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eaa;
$custom-light: #aca3c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eaa",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 170
  },
  "hsl": {
    "h": 256.364,
    "s": 20.561,
    "l": 58.039
  },
  "oklch": {
    "l": 0.62001,
    "c": 0.06672,
    "h": 296.9
  },
  "luminance": 0.23227
}

Semantic roles & 50–950 ramp

primary
#8A7EAA
secondary
#C6CBB9
accent
#BD6BA7
background
#FAFAFC
surface
#F4F3F8
border
#CECDD1
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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