#8A6CC2#8A6CC2

#8A6CC2 is a mid, vivid violet. Relative luminance 0.200; OKLCH L 59.7% C 0.130 H 298.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A6CC2
RGBrgb(138, 108, 194)
HSLhsl(261, 41%, 59%)
HSVhsv(261, 44%, 76%)
CMYKcmyk(28.9%, 44.3%, 0%, 23.9%)
CIE-LABlab(51.86, 30.30, -40.86)
CIE-LCHlch(51.86, 50.87, 306.56°)
OKLaboklab(59.73% 0.0621 -0.1145)
OKLCHoklch(59.73% 0.13 298.5)
XYZxyz(25.5791, 20.0232, 53.5457)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CC2 #A4C26C
analogous
#6C79C2 #8A6CC2 #B56CC2
triadic
#8A6CC2 #C28A6C #6CC28A
tetradic
#8A6CC2 #C26C79 #A4C26C #6CC2B5
square
#8A6CC2 #C26C79 #A4C26C #6CC2B5
split-complementary
#8A6CC2 #C2B56C #79C26C
monochromatic
#4F357F #6947AA #8A6CC2 #AC97D4 #CFC3E6

Accessibility & contrast

On white

4.20
#8A6CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8A6CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CC2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CC2#FFFFFF#000000##000000
##8A6CC21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#537CC5
Deuteranopia (green-blind)
#597BC0
Tritanopia (blue-blind)
#7F7B8E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6cc2;
/* rgb */ color: rgb(138, 108, 194);
/* oklch */ color: oklch(59.7% 0.130 298.5);
Tailwind
colors: {
  custom: {
    50: '#ae96d5',
    500: '#8a6cc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cc2;
$custom-light: #ae96d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cc2",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 194
  },
  "hsl": {
    "h": 260.93,
    "s": 41.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59727,
    "c": 0.13025,
    "h": 298.5
  },
  "luminance": 0.20023
}

Semantic roles & 50–950 ramp

primary
#8A6CC2
secondary
#CAD6B4
accent
#D157A6
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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