#8A6BB7#8A6BB7

#8A6BB7 is a mid, moderate violet. Relative luminance 0.193; OKLCH L 59.0% C 0.117 H 301.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A6BB7
RGBrgb(138, 107, 183)
HSLhsl(264, 35%, 57%)
HSVhsv(264, 42%, 72%)
CMYKcmyk(24.6%, 41.5%, 0%, 28.2%)
CIE-LABlab(51.08, 28.14, -35.76)
CIE-LCHlch(51.08, 45.50, 308.20°)
OKLaboklab(58.96% 0.0616 -0.0997)
OKLCHoklch(58.96% 0.117 301.7)
XYZxyz(24.2843, 19.3375, 47.2437)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BB7 #98B76B
analogous
#6B72B7 #8A6BB7 #B06BB7
triadic
#8A6BB7 #B78A6B #6BB78A
tetradic
#8A6BB7 #B76B72 #98B76B #6BB7B0
square
#8A6BB7 #B76B72 #98B76B #6BB7B0
split-complementary
#8A6BB7 #B7B06B #72B76B
monochromatic
#4E3771 #6B4B9A #8A6BB7 #AB94CB #CBBDDF

Accessibility & contrast

On white

4.31
#8A6BB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8A6BB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BB7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BB7#FFFFFF#000000##000000
##8A6BB71.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5879BA
Deuteranopia (green-blind)
#5E79B5
Tritanopia (blue-blind)
#827888
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6bb7;
/* rgb */ color: rgb(138, 107, 183);
/* oklch */ color: oklch(59.0% 0.117 301.7);
Tailwind
colors: {
  custom: {
    50: '#ae96cd',
    500: '#8a6bb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bb7;
$custom-light: #ae96cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bb7",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 183
  },
  "hsl": {
    "h": 264.474,
    "s": 34.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.58958,
    "c": 0.11719,
    "h": 301.7
  },
  "luminance": 0.19338
}

Semantic roles & 50–950 ramp

primary
#8A6BB7
secondary
#C2CEAF
accent
#CB5D9E
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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