#8A6BD9#8A6BD9

#8A6BD9 is a mid, vivid violet. Relative luminance 0.209; OKLCH L 60.9% C 0.162 H 294.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A6BD9
RGBrgb(138, 107, 217)
HSLhsl(257, 59%, 64%)
HSVhsv(257, 51%, 85%)
CMYKcmyk(36.4%, 50.7%, 0%, 14.9%)
CIE-LABlab(52.87, 36.86, -52.37)
CIE-LCHlch(52.87, 64.04, 305.15°)
OKLaboklab(60.88% 0.0661 -0.1481)
OKLCHoklch(60.88% 0.162 294)
XYZxyz(28.2601, 20.9278, 68.1827)
Luminance0.2093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BD9 #BAD96B
analogous
#6B83D9 #8A6BD9 #C16BD9
triadic
#8A6BD9 #D98A6B #6BD98A
tetradic
#8A6BD9 #D96B83 #BAD96B #6BD9C1
square
#8A6BD9 #D96B83 #BAD96B #6BD9C1
split-complementary
#8A6BD9 #D9C16B #83D96B
monochromatic
#4B29A0 #643ACC #8A6BD9 #B09CE6 #D7CCF2

Accessibility & contrast

On white

4.05
#8A6BD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A6BD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BD9
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BD9#FFFFFF#000000##000000
##8A6BD91.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#407FDD
Deuteranopia (green-blind)
#467CD6
Tritanopia (blue-blind)
#778198
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6bd9;
/* rgb */ color: rgb(138, 107, 217);
/* oklch */ color: oklch(60.9% 0.162 294.0);
Tailwind
colors: {
  custom: {
    50: '#b096e5',
    500: '#8a6bd9',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bd9;
$custom-light: #b096e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bd9",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 217
  },
  "hsl": {
    "h": 256.909,
    "s": 59.14,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60884,
    "c": 0.16219,
    "h": 294
  },
  "luminance": 0.20928
}

Semantic roles & 50–950 ramp

primary
#8A6BD9
secondary
#D8E3BC
accent
#C71F97
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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