#8A7C98#8A7C98

#8A7C98 is a mid, muted violet. Relative luminance 0.221; OKLCH L 60.9% C 0.045 H 307.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8A7C98
RGBrgb(138, 124, 152)
HSLhsl(270, 12%, 54%)
HSVhsv(270, 18%, 60%)
CMYKcmyk(9.2%, 18.4%, 0%, 40.4%)
CIE-LABlab(54.12, 10.94, -13.09)
CIE-LCHlch(54.12, 17.06, 309.90°)
OKLaboklab(60.86% 0.0273 -0.0354)
OKLCHoklch(60.86% 0.045 307.6)
XYZxyz(23.3554, 22.0857, 32.7322)
Luminance0.2209 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C98 #8A987C
analogous
#7C7C98 #8A7C98 #987C98
triadic
#8A7C98 #988A7C #7C988A
tetradic
#8A7C98 #987C7C #8A987C #7C9898
square
#8A7C98 #987C7C #8A987C #7C9898
split-complementary
#8A7C98 #98987C #7C987C
monochromatic
#4D4456 #6B5F78 #8A7C98 #A99EB3 #C7C1CE

Accessibility & contrast

On white

3.88
#8A7C98 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#8A7C98 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7C98
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7C98#FFFFFF#000000##000000
##8A7C981.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#788199
Deuteranopia (green-blind)
#7A8297
Tritanopia (blue-blind)
#887F85
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a7c98;
/* rgb */ color: rgb(138, 124, 152);
/* oklch */ color: oklch(60.9% 0.045 307.6);
Tailwind
colors: {
  custom: {
    50: '#aca2b6',
    500: '#8a7c98',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c98;
$custom-light: #aca2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c98",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 152
  },
  "hsl": {
    "h": 270,
    "s": 11.966,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60864,
    "c": 0.04468,
    "h": 307.6
  },
  "luminance": 0.22086
}

Semantic roles & 50–950 ramp

primary
#8A7C98
secondary
#B8BEB2
accent
#B57394
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#100F11
muted
#7F7E80

Preview Lab

Preview with #8A7C98

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

Preview Lab → · Contrast checker → · Palette generator →

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