#8A6CB5#8A6CB5

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

Color values

HEX#8A6CB5
RGBrgb(138, 108, 181)
HSLhsl(265, 33%, 57%)
HSVhsv(265, 40%, 71%)
CMYKcmyk(23.8%, 40.3%, 0%, 29%)
CIE-LABlab(51.23, 27.06, -34.37)
CIE-LCHlch(51.23, 43.74, 308.21°)
OKLaboklab(59.04% 0.0598 -0.0957)
OKLCHoklch(59.04% 0.113 302)
XYZxyz(24.1825, 19.4646, 46.1901)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CB5 #97B56C
analogous
#6C73B5 #8A6CB5 #AF6CB5
triadic
#8A6CB5 #B58A6C #6CB58A
tetradic
#8A6CB5 #B56C73 #97B56C #6CB5AF
square
#8A6CB5 #B56C73 #97B56C #6CB5AF
split-complementary
#8A6CB5 #B5AF6C #73B56C
monochromatic
#4E386F #6B4C98 #8A6CB5 #AA95C9 #CBBDDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6CB5#FFFFFF#000000##000000
##8A6CB51.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)
#5A79B8
Deuteranopia (green-blind)
#607AB3
Tritanopia (blue-blind)
#827888
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6cb5;
/* rgb */ color: rgb(138, 108, 181);
/* oklch */ color: oklch(59.0% 0.113 302.0);
Tailwind
colors: {
  custom: {
    50: '#ad96cb',
    500: '#8a6cb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cb5;
$custom-light: #ad96cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cb5",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 181
  },
  "hsl": {
    "h": 264.658,
    "s": 33.032,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59037,
    "c": 0.11282,
    "h": 302
  },
  "luminance": 0.19465
}

Semantic roles & 50–950 ramp

primary
#8A6CB5
secondary
#C1CDAF
accent
#C95F9D
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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