#8A7EA7#8A7EA7

#8A7EA7 is a mid, moderate violet. Relative luminance 0.231; OKLCH L 61.9% C 0.062 H 298.0°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A7EA7
RGBrgb(138, 126, 167)
HSLhsl(258, 19%, 57%)
HSVhsv(258, 25%, 65%)
CMYKcmyk(17.4%, 24.6%, 0%, 34.5%)
CIE-LABlab(55.19, 13.14, -20.14)
CIE-LCHlch(55.19, 24.05, 303.13°)
OKLaboklab(61.87% 0.0293 -0.0551)
OKLCHoklch(61.87% 0.062 298)
XYZxyz(24.9157, 23.1149, 39.7007)
Luminance0.2311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EA7 #9BA77E
analogous
#7E87A7 #8A7EA7 #9F7EA7
triadic
#8A7EA7 #A78A7E #7EA78A
tetradic
#8A7EA7 #A77E87 #9BA77E #7EA79F
square
#8A7EA7 #A77E87 #9BA77E #7EA79F
split-complementary
#8A7EA7 #A79F7E #87A77E
monochromatic
#4F4565 #6B5E8A #8A7EA7 #ABA2C0 #CCC7D9

Accessibility & contrast

On white

3.73
#8A7EA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8A7EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EA7
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EA7#FFFFFF#000000##000000
##8A7EA71.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7584A9
Deuteranopia (green-blind)
#7784A6
Tritanopia (blue-blind)
#85848C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7ea7;
/* rgb */ color: rgb(138, 126, 167);
/* oklch */ color: oklch(61.9% 0.062 298.0);
Tailwind
colors: {
  custom: {
    50: '#aca3c1',
    500: '#8a7ea7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ea7;
$custom-light: #aca3c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ea7",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 167
  },
  "hsl": {
    "h": 257.561,
    "s": 18.894,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61874,
    "c": 0.0624,
    "h": 298
  },
  "luminance": 0.23115
}

Semantic roles & 50–950 ramp

primary
#8A7EA7
secondary
#C4C9B8
accent
#BC6CA4
background
#FAFAFB
surface
#F4F3F7
border
#CECDD0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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