#8A6EA6#8A6EA6

#8A6EA6 is a mid, moderate violet. Relative luminance 0.193; OKLCH L 58.7% C 0.089 H 306.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A6EA6
RGBrgb(138, 110, 166)
HSLhsl(270, 24%, 54%)
HSVhsv(270, 34%, 65%)
CMYKcmyk(16.9%, 33.7%, 0%, 34.9%)
CIE-LABlab(51.05, 22.31, -25.94)
CIE-LCHlch(51.05, 34.21, 310.70°)
OKLaboklab(58.68% 0.0533 -0.0715)
OKLCHoklch(58.68% 0.089 306.7)
XYZxyz(22.9388, 19.3085, 38.5875)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EA6 #8AA66E
analogous
#6E6EA6 #8A6EA6 #A66EA6
triadic
#8A6EA6 #A68A6E #6EA68A
tetradic
#8A6EA6 #A66E6E #8AA66E #6EA6A6
square
#8A6EA6 #A66E6E #8AA66E #6EA6A6
split-complementary
#8A6EA6 #A6A66E #6EA66E
monochromatic
#4D3A5F #6B5285 #8A6EA6 #A994BD #C7BAD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6EA6#FFFFFF#000000##000000
##8A6EA61.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)
#6379A8
Deuteranopia (green-blind)
#697AA4
Tritanopia (blue-blind)
#867682
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6ea6;
/* rgb */ color: rgb(138, 110, 166);
/* oklch */ color: oklch(58.7% 0.089 306.7);
Tailwind
colors: {
  custom: {
    50: '#ad98c0',
    500: '#8a6ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ea6;
$custom-light: #ad98c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ea6",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 166
  },
  "hsl": {
    "h": 270,
    "s": 23.932,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58679,
    "c": 0.08917,
    "h": 306.7
  },
  "luminance": 0.19308
}

Semantic roles & 50–950 ramp

primary
#8A6EA6
secondary
#B8C4AC
accent
#C06794
background
#FAF9FB
surface
#F4F2F7
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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