#8A6BB3#8A6BB3

#8A6BB3 is a mid, moderate violet. Relative luminance 0.192; OKLCH L 58.8% C 0.112 H 302.9°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8A6BB3
RGBrgb(138, 107, 179)
HSLhsl(266, 32%, 56%)
HSVhsv(266, 40%, 70%)
CMYKcmyk(22.9%, 40.2%, 0%, 29.8%)
CIE-LABlab(50.89, 27.16, -33.74)
CIE-LCHlch(50.89, 43.31, 308.83°)
OKLaboklab(58.75% 0.0608 -0.0938)
OKLCHoklch(58.75% 0.112 302.9)
XYZxyz(23.8739, 19.1734, 45.0822)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BB3 #94B36B
analogous
#6B70B3 #8A6BB3 #AE6BB3
triadic
#8A6BB3 #B38A6B #6BB38A
tetradic
#8A6BB3 #B36B70 #94B36B #6BB3AE
square
#8A6BB3 #B36B70 #94B36B #6BB3AE
split-complementary
#8A6BB3 #B3AE6B #70B36B
monochromatic
#4E386C #6B4C95 #8A6BB3 #AA93C8 #CABCDD

Accessibility & contrast

On white

4.34
#8A6BB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#8A6BB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BB3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BB3#FFFFFF#000000##000000
##8A6BB31.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A78B6
Deuteranopia (green-blind)
#6079B1
Tritanopia (blue-blind)
#837786
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a6bb3;
/* rgb */ color: rgb(138, 107, 179);
/* oklch */ color: oklch(58.8% 0.112 302.9);
Tailwind
colors: {
  custom: {
    50: '#ad96ca',
    500: '#8a6bb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bb3;
$custom-light: #ad96ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bb3",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 179
  },
  "hsl": {
    "h": 265.833,
    "s": 32.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58751,
    "c": 0.11184,
    "h": 302.9
  },
  "luminance": 0.19173
}

Semantic roles & 50–950 ramp

primary
#8A6BB3
secondary
#BFCCAE
accent
#C85F9B
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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