#8A6BC4#8A6BC4

#8A6BC4 is a mid, vivid violet. Relative luminance 0.199; OKLCH L 59.7% C 0.135 H 298.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A6BC4
RGBrgb(138, 107, 196)
HSLhsl(261, 43%, 59%)
HSVhsv(261, 45%, 77%)
CMYKcmyk(29.6%, 45.4%, 0%, 23.1%)
CIE-LABlab(51.73, 31.39, -42.22)
CIE-LCHlch(51.73, 52.61, 306.63°)
OKLaboklab(59.66% 0.0638 -0.1185)
OKLCHoklch(59.66% 0.135 298.3)
XYZxyz(25.7004, 19.9040, 54.7017)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BC4 #A5C46B
analogous
#6B79C4 #8A6BC4 #B76BC4
triadic
#8A6BC4 #C48A6B #6BC48A
tetradic
#8A6BC4 #C46B79 #A5C46B #6BC4B7
square
#8A6BC4 #C46B79 #A5C46B #6BC4B7
split-complementary
#8A6BC4 #C4B76B #79C46B
monochromatic
#4F3381 #6945AD #8A6BC4 #AD97D5 #CFC3E7

Accessibility & contrast

On white

4.22
#8A6BC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8A6BC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BC4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BC4#FFFFFF#000000##000000
##8A6BC41.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#507BC7
Deuteranopia (green-blind)
#567AC2
Tritanopia (blue-blind)
#7E7B8E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6bc4;
/* rgb */ color: rgb(138, 107, 196);
/* oklch */ color: oklch(59.7% 0.135 298.3);
Tailwind
colors: {
  custom: {
    50: '#ae96d6',
    500: '#8a6bc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bc4;
$custom-light: #ae96d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bc4",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 196
  },
  "hsl": {
    "h": 260.899,
    "s": 42.995,
    "l": 59.412
  },
  "oklch": {
    "l": 0.59658,
    "c": 0.13453,
    "h": 298.3
  },
  "luminance": 0.19904
}

Semantic roles & 50–950 ramp

primary
#8A6BC4
secondary
#CBD7B4
accent
#D355A7
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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