#8A6FA3#8A6FA3

#8A6FA3 is a mid, moderate violet. Relative luminance 0.194; OKLCH L 58.7% C 0.083 H 307.7°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A6FA3
RGBrgb(138, 111, 163)
HSLhsl(271, 22%, 54%)
HSVhsv(271, 32%, 64%)
CMYKcmyk(15.3%, 31.9%, 0%, 36.1%)
CIE-LABlab(51.17, 21.03, -23.99)
CIE-LCHlch(51.17, 31.90, 311.23°)
OKLaboklab(58.73% 0.051 -0.0659)
OKLCHoklch(58.73% 0.083 307.7)
XYZxyz(22.7753, 19.4167, 37.1912)
Luminance0.1942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FA3 #88A36F
analogous
#706FA3 #8A6FA3 #A36FA2
triadic
#8A6FA3 #A38A6F #6FA38A
tetradic
#8A6FA3 #A3706F #88A36F #6FA2A3
square
#8A6FA3 #A3706F #88A36F #6FA2A3
split-complementary
#8A6FA3 #A2A36F #6FA370
monochromatic
#4C3B5D #6B5382 #8A6FA3 #A894BB #C7BAD3

Accessibility & contrast

On white

4.30
#8A6FA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8A6FA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FA3
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FA3#FFFFFF#000000##000000
##8A6FA31.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6579A5
Deuteranopia (green-blind)
#6B7AA1
Tritanopia (blue-blind)
#877682
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6fa3;
/* rgb */ color: rgb(138, 111, 163);
/* oklch */ color: oklch(58.7% 0.083 307.7);
Tailwind
colors: {
  custom: {
    50: '#ad98be',
    500: '#8a6fa3',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fa3;
$custom-light: #ad98be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fa3",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 163
  },
  "hsl": {
    "h": 271.154,
    "s": 22.034,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58733,
    "c": 0.08335,
    "h": 307.7
  },
  "luminance": 0.19416
}

Semantic roles & 50–950 ramp

primary
#8A6FA3
secondary
#B6C2AC
accent
#BF6992
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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