#8A6FA5#8A6FA5

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

Color values

HEX#8A6FA5
RGBrgb(138, 111, 165)
HSLhsl(270, 23%, 54%)
HSVhsv(270, 33%, 65%)
CMYKcmyk(16.4%, 32.7%, 0%, 35.3%)
CIE-LABlab(51.25, 21.49, -25.03)
CIE-LCHlch(51.25, 32.99, 310.65°)
OKLaboklab(58.82% 0.0515 -0.0689)
OKLCHoklch(58.82% 0.086 306.8)
XYZxyz(22.9559, 19.4889, 38.1424)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FA5 #8AA56F
analogous
#6F6FA5 #8A6FA5 #A56FA5
triadic
#8A6FA5 #A58A6F #6FA58A
tetradic
#8A6FA5 #A56F6F #8AA56F #6FA5A5
square
#8A6FA5 #A56F6F #8AA56F #6FA5A5
split-complementary
#8A6FA5 #A5A56F #6FA56F
monochromatic
#4D3B5F #6B5384 #8A6FA5 #A995BD #C7BAD4

Accessibility & contrast

On white

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

On black

4.90
#8A6FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FA5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FA5#FFFFFF#000000##000000
##8A6FA51.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6579A7
Deuteranopia (green-blind)
#6A7AA3
Tritanopia (blue-blind)
#867783
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6fa5;
/* rgb */ color: rgb(138, 111, 165);
/* oklch */ color: oklch(58.8% 0.086 306.8);
Tailwind
colors: {
  custom: {
    50: '#ad98c0',
    500: '#8a6fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fa5;
$custom-light: #ad98c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fa5",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 165
  },
  "hsl": {
    "h": 270,
    "s": 23.077,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58824,
    "c": 0.08603,
    "h": 306.8
  },
  "luminance": 0.19489
}

Semantic roles & 50–950 ramp

primary
#8A6FA5
secondary
#B8C3AC
accent
#C06894
background
#FAF9FB
surface
#F4F2F7
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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