#8A7E98#8A7E98

#8A7E98 is a mid, muted violet. Relative luminance 0.226; OKLCH L 61.3% C 0.041 H 306.1°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A7E98
RGBrgb(138, 126, 152)
HSLhsl(268, 11%, 55%)
HSVhsv(268, 17%, 60%)
CMYKcmyk(9.2%, 17.1%, 0%, 40.4%)
CIE-LABlab(54.65, 9.78, -12.28)
CIE-LCHlch(54.65, 15.70, 308.52°)
OKLaboklab(61.28% 0.0242 -0.0332)
OKLCHoklch(61.28% 0.041 306.1)
XYZxyz(23.6086, 22.5921, 32.8166)
Luminance0.2259 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E98 #8C987E
analogous
#7E7F98 #8A7E98 #977E98
triadic
#8A7E98 #988A7E #7E988A
tetradic
#8A7E98 #987E7F #8C987E #7E9897
square
#8A7E98 #987E7F #8C987E #7E9897
split-complementary
#8A7E98 #98977E #7F987E
monochromatic
#4D4557 #6B6079 #8A7E98 #A9A0B3 #C8C2CE

Accessibility & contrast

On white

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

On black

5.52
#8A7E98 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E98
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E98#FFFFFF#000000##000000
##8A7E981.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8299
Deuteranopia (green-blind)
#7C8397
Tritanopia (blue-blind)
#888187
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a7e98;
/* rgb */ color: rgb(138, 126, 152);
/* oklch */ color: oklch(61.3% 0.041 306.1);
Tailwind
colors: {
  custom: {
    50: '#aca3b6',
    500: '#8a7e98',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e98;
$custom-light: #aca3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e98",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 152
  },
  "hsl": {
    "h": 267.692,
    "s": 11.207,
    "l": 54.51
  },
  "oklch": {
    "l": 0.61277,
    "c": 0.04105,
    "h": 306.1
  },
  "luminance": 0.22592
}

Semantic roles & 50–950 ramp

primary
#8A7E98
secondary
#B9BEB3
accent
#B47496
background
#FAFAFB
surface
#F4F3F6
border
#CECDD0
text
#100F11
muted
#7F7F80

Preview Lab

Preview with #8A7E98

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

Preview Lab → · Contrast checker → · Palette generator →

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