#8A7EA2#8A7EA2

#8A7EA2 is a mid, muted violet. Relative luminance 0.229; OKLCH L 61.7% C 0.055 H 300.0°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A7EA2
RGBrgb(138, 126, 162)
HSLhsl(260, 16%, 56%)
HSVhsv(260, 22%, 64%)
CMYKcmyk(14.8%, 22.2%, 0%, 36.5%)
CIE-LABlab(55.00, 11.99, -17.54)
CIE-LCHlch(55.00, 21.25, 304.37°)
OKLaboklab(61.67% 0.0276 -0.0478)
OKLCHoklch(61.67% 0.055 300)
XYZxyz(24.4624, 22.9336, 37.3133)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EA2 #96A27E
analogous
#7E84A2 #8A7EA2 #9C7EA2
triadic
#8A7EA2 #A28A7E #7EA28A
tetradic
#8A7EA2 #A27E84 #96A27E #7EA29C
square
#8A7EA2 #A27E84 #96A27E #7EA29C
split-complementary
#8A7EA2 #A29C7E #84A27E
monochromatic
#4E4560 #6B5F84 #8A7EA2 #AAA2BC #CBC5D5

Accessibility & contrast

On white

3.76
#8A7EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#8A7EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EA2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EA2#FFFFFF#000000##000000
##8A7EA21.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7784A4
Deuteranopia (green-blind)
#7983A1
Tritanopia (blue-blind)
#86838A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7ea2;
/* rgb */ color: rgb(138, 126, 162);
/* oklch */ color: oklch(61.7% 0.055 300.0);
Tailwind
colors: {
  custom: {
    50: '#aca3bd',
    500: '#8a7ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ea2;
$custom-light: #aca3bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ea2",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 260,
    "s": 16.216,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61668,
    "c": 0.05522,
    "h": 300
  },
  "luminance": 0.22934
}

Semantic roles & 50–950 ramp

primary
#8A7EA2
secondary
#C0C5B7
accent
#B96FA0
background
#FAFAFB
surface
#F4F3F6
border
#CECDD0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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