#8A7AA2#8A7AA2

#8A7AA2 is a mid, moderate violet. Relative luminance 0.219; OKLCH L 60.9% C 0.062 H 302.9°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A7AA2
RGBrgb(138, 122, 162)
HSLhsl(264, 18%, 56%)
HSVhsv(264, 25%, 64%)
CMYKcmyk(14.8%, 24.7%, 0%, 36.5%)
CIE-LABlab(53.95, 14.33, -19.14)
CIE-LCHlch(53.95, 23.91, 306.83°)
OKLaboklab(60.86% 0.0338 -0.0523)
OKLCHoklch(60.86% 0.062 302.9)
XYZxyz(23.9611, 21.9310, 37.1462)
Luminance0.2193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AA2 #92A27A
analogous
#7A7EA2 #8A7AA2 #9E7AA2
triadic
#8A7AA2 #A28A7A #7AA28A
tetradic
#8A7AA2 #A27A7E #92A27A #7AA29E
square
#8A7AA2 #A27A7E #92A27A #7AA29E
split-complementary
#8A7AA2 #A29E7A #7EA27A
monochromatic
#4E425F #6B5C83 #8A7AA2 #AA9EBB #C9C2D4

Accessibility & contrast

On white

3.90
#8A7AA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#8A7AA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AA2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AA2#FFFFFF#000000##000000
##8A7AA21.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7281A4
Deuteranopia (green-blind)
#7581A1
Tritanopia (blue-blind)
#868088
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a7aa2;
/* rgb */ color: rgb(138, 122, 162);
/* oklch */ color: oklch(60.9% 0.062 302.9);
Tailwind
colors: {
  custom: {
    50: '#aca0bd',
    500: '#8a7aa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7aa2;
$custom-light: #aca0bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7aa2",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 162
  },
  "hsl": {
    "h": 264,
    "s": 17.699,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60857,
    "c": 0.06223,
    "h": 302.9
  },
  "luminance": 0.21931
}

Semantic roles & 50–950 ramp

primary
#8A7AA2
secondary
#BEC4B4
accent
#BA6D9C
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#100E12
muted
#7F7E81

Preview Lab

Preview with #8A7AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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