#8A6EB3#8A6EB3

#8A6EB3 is a mid, moderate violet. Relative luminance 0.198; OKLCH L 59.3% C 0.107 H 301.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A6EB3
RGBrgb(138, 110, 179)
HSLhsl(264, 31%, 57%)
HSVhsv(264, 39%, 70%)
CMYKcmyk(22.9%, 38.5%, 0%, 29.8%)
CIE-LABlab(51.62, 25.40, -32.59)
CIE-LCHlch(51.62, 41.32, 307.93°)
OKLaboklab(59.31% 0.0564 -0.0906)
OKLCHoklch(59.31% 0.107 301.9)
XYZxyz(24.1921, 19.8098, 45.1883)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EB3 #97B36E
analogous
#6E75B3 #8A6EB3 #AD6EB3
triadic
#8A6EB3 #B38A6E #6EB38A
tetradic
#8A6EB3 #B36E75 #97B36E #6EB3AD
square
#8A6EB3 #B36E75 #97B36E #6EB3AD
split-complementary
#8A6EB3 #B3AD6E #75B36E
monochromatic
#4E396D #6B4E95 #8A6EB3 #AA96C8 #CBBEDD

Accessibility & contrast

On white

4.23
#8A6EB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#8A6EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EB3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EB3#FFFFFF#000000##000000
##8A6EB31.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D7BB6
Deuteranopia (green-blind)
#637BB1
Tritanopia (blue-blind)
#837988
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6eb3;
/* rgb */ color: rgb(138, 110, 179);
/* oklch */ color: oklch(59.3% 0.107 301.9);
Tailwind
colors: {
  custom: {
    50: '#ad98ca',
    500: '#8a6eb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a6eb3;
$custom-light: #ad98ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6eb3",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 179
  },
  "hsl": {
    "h": 264.348,
    "s": 31.222,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59306,
    "c": 0.10671,
    "h": 301.9
  },
  "luminance": 0.1981
}

Semantic roles & 50–950 ramp

primary
#8A6EB3
secondary
#C1CDB0
accent
#C7609E
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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