#8A6BC2#8A6BC2

#8A6BC2 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.5% C 0.132 H 298.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A6BC2
RGBrgb(138, 107, 194)
HSLhsl(261, 42%, 59%)
HSVhsv(261, 45%, 76%)
CMYKcmyk(28.9%, 44.8%, 0%, 23.9%)
CIE-LABlab(51.63, 30.88, -41.23)
CIE-LCHlch(51.63, 51.52, 306.83°)
OKLaboklab(59.55% 0.0635 -0.1156)
OKLCHoklch(59.55% 0.132 298.8)
XYZxyz(25.4742, 19.8135, 53.5108)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BC2 #A3C26B
analogous
#6B78C2 #8A6BC2 #B66BC2
triadic
#8A6BC2 #C28A6B #6BC28A
tetradic
#8A6BC2 #C26B78 #A3C26B #6BC2B6
square
#8A6BC2 #C26B78 #A3C26B #6BC2B6
split-complementary
#8A6BC2 #C2B66B #78C26B
monochromatic
#4F347E #6A46AA #8A6BC2 #AC96D4 #CFC2E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6BC2#FFFFFF#000000##000000
##8A6BC21.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)
#517BC5
Deuteranopia (green-blind)
#587AC0
Tritanopia (blue-blind)
#7F7B8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6bc2;
/* rgb */ color: rgb(138, 107, 194);
/* oklch */ color: oklch(59.5% 0.132 298.8);
Tailwind
colors: {
  custom: {
    50: '#ae96d5',
    500: '#8a6bc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bc2;
$custom-light: #ae96d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bc2",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 194
  },
  "hsl": {
    "h": 261.379,
    "s": 41.627,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59548,
    "c": 0.13188,
    "h": 298.8
  },
  "luminance": 0.19814
}

Semantic roles & 50–950 ramp

primary
#8A6BC2
secondary
#C9D5B3
accent
#D156A6
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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