#8A6EB6#8A6EB6

#8A6EB6 is a mid, moderate violet. Relative luminance 0.199; OKLCH L 59.5% C 0.111 H 301.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A6EB6
RGBrgb(138, 110, 182)
HSLhsl(263, 33%, 57%)
HSVhsv(263, 40%, 71%)
CMYKcmyk(24.2%, 39.6%, 0%, 28.6%)
CIE-LABlab(51.76, 26.13, -34.11)
CIE-LCHlch(51.76, 42.97, 307.45°)
OKLaboklab(59.46% 0.0571 -0.0949)
OKLCHoklch(59.46% 0.111 301)
XYZxyz(24.4988, 19.9325, 46.8036)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EB6 #9AB66E
analogous
#6E76B6 #8A6EB6 #AE6EB6
triadic
#8A6EB6 #B68A6E #6EB68A
tetradic
#8A6EB6 #B66E76 #9AB66E #6EB6AE
square
#8A6EB6 #B66E76 #9AB66E #6EB6AE
split-complementary
#8A6EB6 #B6AE6E #76B66E
monochromatic
#4F3971 #6B4D9A #8A6EB6 #AB97CA #CCBFDF

Accessibility & contrast

On white

4.21
#8A6EB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A6EB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EB6
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EB6#FFFFFF#000000##000000
##8A6EB61.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C7BB9
Deuteranopia (green-blind)
#627BB4
Tritanopia (blue-blind)
#827A89
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6eb6;
/* rgb */ color: rgb(138, 110, 182);
/* oklch */ color: oklch(59.5% 0.111 301.0);
Tailwind
colors: {
  custom: {
    50: '#ad98cc',
    500: '#8a6eb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a6eb6;
$custom-light: #ad98cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6eb6",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 182
  },
  "hsl": {
    "h": 263.333,
    "s": 33.028,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59457,
    "c": 0.11077,
    "h": 301
  },
  "luminance": 0.19933
}

Semantic roles & 50–950 ramp

primary
#8A6EB6
secondary
#C3CEB1
accent
#C95FA0
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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