#8A6ABB#8A6ABB

#8A6ABB is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.0% C 0.124 H 300.9°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A6ABB
RGBrgb(138, 106, 187)
HSLhsl(264, 37%, 57%)
HSVhsv(264, 43%, 73%)
CMYKcmyk(26.2%, 43.3%, 0%, 26.7%)
CIE-LABlab(51.04, 29.71, -38.14)
CIE-LCHlch(51.04, 48.34, 307.92°)
OKLaboklab(58.99% 0.0638 -0.1066)
OKLCHoklch(58.99% 0.124 300.9)
XYZxyz(24.6029, 19.2991, 49.4330)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6ABB #9BBB6A
analogous
#6A72BB #8A6ABB #B36ABB
triadic
#8A6ABB #BB8A6A #6ABB8A
tetradic
#8A6ABB #BB6A72 #9BBB6A #6ABBB3
square
#8A6ABB #BB6A72 #9BBB6A #6ABBB3
split-complementary
#8A6ABB #BBB36A #72BB6A
monochromatic
#4F3575 #6B499F #8A6ABB #AB94CE #CCBEE1

Accessibility & contrast

On white

4.32
#8A6ABB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A6ABB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6ABB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6ABB#FFFFFF#000000##000000
##8A6ABB1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5479BE
Deuteranopia (green-blind)
#5B79B9
Tritanopia (blue-blind)
#817889
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6abb;
/* rgb */ color: rgb(138, 106, 187);
/* oklch */ color: oklch(59.0% 0.124 300.9);
Tailwind
colors: {
  custom: {
    50: '#ae95d0',
    500: '#8a6abb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6abb;
$custom-light: #ae95d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6abb",
  "rgb": {
    "r": 138,
    "g": 106,
    "b": 187
  },
  "hsl": {
    "h": 263.704,
    "s": 37.327,
    "l": 57.451
  },
  "oklch": {
    "l": 0.58988,
    "c": 0.1242,
    "h": 300.9
  },
  "luminance": 0.19299
}

Semantic roles & 50–950 ramp

primary
#8A6ABB
secondary
#C4D1B0
accent
#CD5BA0
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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