#8A6BB9#8A6BB9

#8A6BB9 is a mid, moderate violet. Relative luminance 0.194; OKLCH L 59.1% C 0.120 H 301.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A6BB9
RGBrgb(138, 107, 185)
HSLhsl(264, 36%, 57%)
HSVhsv(264, 42%, 73%)
CMYKcmyk(25.4%, 42.2%, 0%, 27.5%)
CIE-LABlab(51.18, 28.63, -36.76)
CIE-LCHlch(51.18, 46.59, 307.91°)
OKLaboklab(59.06% 0.062 -0.1026)
OKLCHoklch(59.06% 0.12 301.1)
XYZxyz(24.4939, 19.4214, 48.3478)
Luminance0.1942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BB9 #9AB96B
analogous
#6B73B9 #8A6BB9 #B16BB9
triadic
#8A6BB9 #B98A6B #6BB98A
tetradic
#8A6BB9 #B96B73 #9AB96B #6BB9B1
square
#8A6BB9 #B96B73 #9AB96B #6BB9B1
split-complementary
#8A6BB9 #B9B16B #73B96B
monochromatic
#4F3673 #6B4A9D #8A6BB9 #AB95CD #CCBEE0

Accessibility & contrast

On white

4.30
#8A6BB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8A6BB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BB9
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BB9#FFFFFF#000000##000000
##8A6BB91.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5679BC
Deuteranopia (green-blind)
#5D7AB7
Tritanopia (blue-blind)
#817889
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6bb9;
/* rgb */ color: rgb(138, 107, 185);
/* oklch */ color: oklch(59.1% 0.120 301.1);
Tailwind
colors: {
  custom: {
    50: '#ae96ce',
    500: '#8a6bb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bb9;
$custom-light: #ae96ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bb9",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 185
  },
  "hsl": {
    "h": 263.846,
    "s": 35.78,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59062,
    "c": 0.11987,
    "h": 301.1
  },
  "luminance": 0.19421
}

Semantic roles & 50–950 ramp

primary
#8A6BB9
secondary
#C3D0B0
accent
#CC5C9F
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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