#8A6FA6#8A6FA6

#8A6FA6 is a mid, moderate violet. Relative luminance 0.195; OKLCH L 58.9% C 0.087 H 306.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A6FA6
RGBrgb(138, 111, 166)
HSLhsl(269, 24%, 54%)
HSVhsv(269, 33%, 65%)
CMYKcmyk(16.9%, 33.1%, 0%, 34.9%)
CIE-LABlab(51.30, 21.72, -25.55)
CIE-LCHlch(51.30, 33.53, 310.37°)
OKLaboklab(58.87% 0.0518 -0.0704)
OKLCHoklch(58.87% 0.087 306.4)
XYZxyz(23.0473, 19.5255, 38.6236)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FA6 #8BA66F
analogous
#6F70A6 #8A6FA6 #A66FA6
triadic
#8A6FA6 #A68A6F #6FA68A
tetradic
#8A6FA6 #A66F70 #8BA66F #6FA6A6
square
#8A6FA6 #A66F70 #8BA66F #6FA6A6
split-complementary
#8A6FA6 #A6A66F #70A66F
monochromatic
#4D3B60 #6B5285 #8A6FA6 #A995BD #C7BBD5

Accessibility & contrast

On white

4.28
#8A6FA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#8A6FA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FA6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FA6#FFFFFF#000000##000000
##8A6FA61.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6479A8
Deuteranopia (green-blind)
#6A7AA4
Tritanopia (blue-blind)
#867783
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6fa6;
/* rgb */ color: rgb(138, 111, 166);
/* oklch */ color: oklch(58.9% 0.087 306.4);
Tailwind
colors: {
  custom: {
    50: '#ad98c0',
    500: '#8a6fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fa6;
$custom-light: #ad98c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fa6",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 166
  },
  "hsl": {
    "h": 269.455,
    "s": 23.605,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5887,
    "c": 0.08738,
    "h": 306.4
  },
  "luminance": 0.19525
}

Semantic roles & 50–950 ramp

primary
#8A6FA6
secondary
#B9C4AD
accent
#C06895
background
#FAF9FB
surface
#F4F2F7
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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