#8A6BB2#8A6BB2

#8A6BB2 is a mid, moderate violet. Relative luminance 0.191; OKLCH L 58.7% C 0.111 H 303.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8A6BB2
RGBrgb(138, 107, 178)
HSLhsl(266, 32%, 56%)
HSVhsv(266, 40%, 70%)
CMYKcmyk(22.5%, 39.9%, 0%, 30.2%)
CIE-LABlab(50.84, 26.92, -33.23)
CIE-LCHlch(50.84, 42.77, 309.00°)
OKLaboklab(58.7% 0.0606 -0.0924)
OKLCHoklch(58.7% 0.111 303.3)
XYZxyz(23.7731, 19.1331, 44.5515)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BB2 #93B26B
analogous
#6B6FB2 #8A6BB2 #AD6BB2
triadic
#8A6BB2 #B28A6B #6BB28A
tetradic
#8A6BB2 #B26B6F #93B26B #6BB2AD
square
#8A6BB2 #B26B6F #93B26B #6BB2AD
split-complementary
#8A6BB2 #B2AD6B #6FB26B
monochromatic
#4E386B #6B4D93 #8A6BB2 #AA93C7 #CABCDC

Accessibility & contrast

On white

4.35
#8A6BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6BB2#FFFFFF#000000##000000
##8A6BB21.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A78B5
Deuteranopia (green-blind)
#6179B0
Tritanopia (blue-blind)
#837686
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a6bb2;
/* rgb */ color: rgb(138, 107, 178);
/* oklch */ color: oklch(58.7% 0.111 303.3);
Tailwind
colors: {
  custom: {
    50: '#ad96c9',
    500: '#8a6bb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bb2;
$custom-light: #ad96c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bb2",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 178
  },
  "hsl": {
    "h": 266.197,
    "s": 31.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58701,
    "c": 0.11051,
    "h": 303.3
  },
  "luminance": 0.19133
}

Semantic roles & 50–950 ramp

primary
#8A6BB2
secondary
#BECBAE
accent
#C8609A
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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