#8A7EA8#8A7EA8

#8A7EA8 is a mid, moderate violet. Relative luminance 0.232; OKLCH L 61.9% C 0.064 H 297.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A7EA8
RGBrgb(138, 126, 168)
HSLhsl(257, 19%, 58%)
HSVhsv(257, 25%, 66%)
CMYKcmyk(17.9%, 25%, 0%, 34.1%)
CIE-LABlab(55.23, 13.38, -20.66)
CIE-LCHlch(55.23, 24.61, 302.92°)
OKLaboklab(61.92% 0.0296 -0.0566)
OKLCHoklch(61.92% 0.064 297.6)
XYZxyz(25.0085, 23.1520, 40.1895)
Luminance0.2315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EA8 #9CA87E
analogous
#7E87A8 #8A7EA8 #9F7EA8
triadic
#8A7EA8 #A88A7E #7EA88A
tetradic
#8A7EA8 #A87E87 #9CA87E #7EA89F
square
#8A7EA8 #A87E87 #9CA87E #7EA89F
split-complementary
#8A7EA8 #A89F7E #87A87E
monochromatic
#4F4566 #6B5E8B #8A7EA8 #ABA3C1 #CCC7D9

Accessibility & contrast

On white

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

On black

5.63
#8A7EA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EA8
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EA8#FFFFFF#000000##000000
##8A7EA81.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7584AA
Deuteranopia (green-blind)
#7784A7
Tritanopia (blue-blind)
#85848D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7ea8;
/* rgb */ color: rgb(138, 126, 168);
/* oklch */ color: oklch(61.9% 0.064 297.6);
Tailwind
colors: {
  custom: {
    50: '#aca3c2',
    500: '#8a7ea8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ea8;
$custom-light: #aca3c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ea8",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 168
  },
  "hsl": {
    "h": 257.143,
    "s": 19.444,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61916,
    "c": 0.06384,
    "h": 297.6
  },
  "luminance": 0.23152
}

Semantic roles & 50–950 ramp

primary
#8A7EA8
secondary
#C5C9B8
accent
#BC6CA5
background
#FAFAFB
surface
#F4F3F7
border
#CECDD0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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