#8A6AB5#8A6AB5

#8A6AB5 is a mid, moderate violet. Relative luminance 0.190; OKLCH L 58.7% C 0.116 H 302.6°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A6AB5
RGBrgb(138, 106, 181)
HSLhsl(266, 34%, 56%)
HSVhsv(266, 41%, 71%)
CMYKcmyk(23.8%, 41.4%, 0%, 29%)
CIE-LABlab(50.74, 28.23, -35.13)
CIE-LCHlch(50.74, 45.07, 308.79°)
OKLaboklab(58.67% 0.0627 -0.0979)
OKLCHoklch(58.67% 0.116 302.6)
XYZxyz(23.9740, 19.0475, 46.1206)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6AB5 #95B56A
analogous
#6A70B5 #8A6AB5 #B06AB5
triadic
#8A6AB5 #B58A6A #6AB58A
tetradic
#8A6AB5 #B56A70 #95B56A #6AB5B0
square
#8A6AB5 #B56A70 #95B56A #6AB5B0
split-complementary
#8A6AB5 #B5B06A #70B56A
monochromatic
#4E376E #6B4B97 #8A6AB5 #AA93C9 #CABCDE

Accessibility & contrast

On white

4.37
#8A6AB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8A6AB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6AB5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6AB5#FFFFFF#000000##000000
##8A6AB51.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5778B8
Deuteranopia (green-blind)
#5E79B3
Tritanopia (blue-blind)
#837687
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a6ab5;
/* rgb */ color: rgb(138, 106, 181);
/* oklch */ color: oklch(58.7% 0.116 302.6);
Tailwind
colors: {
  custom: {
    50: '#ad95cb',
    500: '#8a6ab5',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ab5;
$custom-light: #ad95cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ab5",
  "rgb": {
    "r": 138,
    "g": 106,
    "b": 181
  },
  "hsl": {
    "h": 265.6,
    "s": 33.632,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58672,
    "c": 0.11622,
    "h": 302.6
  },
  "luminance": 0.19048
}

Semantic roles & 50–950 ramp

primary
#8A6AB5
secondary
#C0CDAE
accent
#CA5E9C
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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