#8A6FA4#8A6FA4

#8A6FA4 is a mid, moderate violet. Relative luminance 0.195; OKLCH L 58.8% C 0.085 H 307.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A6FA4
RGBrgb(138, 111, 164)
HSLhsl(271, 23%, 54%)
HSVhsv(271, 32%, 64%)
CMYKcmyk(15.9%, 32.3%, 0%, 35.7%)
CIE-LABlab(51.21, 21.26, -24.51)
CIE-LCHlch(51.21, 32.45, 310.93°)
OKLaboklab(58.78% 0.0513 -0.0674)
OKLCHoklch(58.78% 0.085 307.3)
XYZxyz(22.8652, 19.4527, 37.6649)
Luminance0.1945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FA4 #89A46F
analogous
#706FA4 #8A6FA4 #A46FA4
triadic
#8A6FA4 #A48A6F #6FA48A
tetradic
#8A6FA4 #A4706F #89A46F #6FA4A4
square
#8A6FA4 #A4706F #89A46F #6FA4A4
split-complementary
#8A6FA4 #A4A46F #6FA470
monochromatic
#4D3B5E #6B5383 #8A6FA4 #A895BC #C7BAD3

Accessibility & contrast

On white

4.29
#8A6FA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A6FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FA4
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FA4#FFFFFF#000000##000000
##8A6FA41.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6579A6
Deuteranopia (green-blind)
#6A7AA2
Tritanopia (blue-blind)
#877782
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6fa4;
/* rgb */ color: rgb(138, 111, 164);
/* oklch */ color: oklch(58.8% 0.085 307.3);
Tailwind
colors: {
  custom: {
    50: '#ad98bf',
    500: '#8a6fa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fa4;
$custom-light: #ad98bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fa4",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 164
  },
  "hsl": {
    "h": 270.566,
    "s": 22.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58779,
    "c": 0.08468,
    "h": 307.3
  },
  "luminance": 0.19452
}

Semantic roles & 50–950 ramp

primary
#8A6FA4
secondary
#B7C3AC
accent
#BF6993
background
#FAF9FB
surface
#F4F2F7
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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