#8A7E9E#8A7E9E

#8A7E9E is a mid, muted violet. Relative luminance 0.228; OKLCH L 61.5% C 0.050 H 302.1°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8A7E9E
RGBrgb(138, 126, 158)
HSLhsl(263, 14%, 56%)
HSVhsv(263, 20%, 62%)
CMYKcmyk(12.7%, 20.3%, 0%, 38%)
CIE-LABlab(54.86, 11.09, -15.44)
CIE-LCHlch(54.86, 19.02, 305.69°)
OKLaboklab(61.51% 0.0263 -0.0419)
OKLCHoklch(61.51% 0.05 302.1)
XYZxyz(24.1124, 22.7936, 35.4704)
Luminance0.2279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E9E #929E7E
analogous
#7E829E #8A7E9E #9A7E9E
triadic
#8A7E9E #9E8A7E #7E9E8A
tetradic
#8A7E9E #9E7E82 #929E7E #7E9E9A
square
#8A7E9E #9E7E82 #929E7E #7E9E9A
split-complementary
#8A7E9E #9E9A7E #829E7E
monochromatic
#4E455C #6B607F #8A7E9E #AAA1B8 #C9C4D3

Accessibility & contrast

On white

3.78
#8A7E9E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#8A7E9E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E9E
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E9E#FFFFFF#000000##000000
##8A7E9E1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#78839F
Deuteranopia (green-blind)
#7A839D
Tritanopia (blue-blind)
#878289
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a7e9e;
/* rgb */ color: rgb(138, 126, 158);
/* oklch */ color: oklch(61.5% 0.050 302.1);
Tailwind
colors: {
  custom: {
    50: '#aca3ba',
    500: '#8a7e9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e9e;
$custom-light: #aca3ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e9e",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 158
  },
  "hsl": {
    "h": 262.5,
    "s": 14.159,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61508,
    "c": 0.0495,
    "h": 302.1
  },
  "luminance": 0.22794
}

Semantic roles & 50–950 ramp

primary
#8A7E9E
secondary
#BEC3B5
accent
#B7719D
background
#FAFAFB
surface
#F4F3F6
border
#CECDD0
text
#100F11
muted
#7F7F80

Preview Lab

Preview with #8A7E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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