#8A6DB5#8A6DB5

#8A6DB5 is a mid, moderate violet. Relative luminance 0.197; OKLCH L 59.2% C 0.111 H 301.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A6DB5
RGBrgb(138, 109, 181)
HSLhsl(264, 33%, 57%)
HSVhsv(264, 40%, 71%)
CMYKcmyk(23.8%, 39.8%, 0%, 29%)
CIE-LABlab(51.47, 26.47, -33.99)
CIE-LCHlch(51.47, 43.08, 307.91°)
OKLaboklab(59.22% 0.0583 -0.0946)
OKLCHoklch(59.22% 0.111 301.7)
XYZxyz(24.2885, 19.6767, 46.2255)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DB5 #98B56D
analogous
#6D74B5 #8A6DB5 #AE6DB5
triadic
#8A6DB5 #B58A6D #6DB58A
tetradic
#8A6DB5 #B56D74 #98B56D #6DB5AE
square
#8A6DB5 #B56D74 #98B56D #6DB5AE
split-complementary
#8A6DB5 #B5AE6D #74B56D
monochromatic
#4E386F #6B4D98 #8A6DB5 #AB96CA #CBBEDE

Accessibility & contrast

On white

4.25
#8A6DB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A6DB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DB5
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DB5#FFFFFF#000000##000000
##8A6DB51.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7AB8
Deuteranopia (green-blind)
#617AB3
Tritanopia (blue-blind)
#827988
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6db5;
/* rgb */ color: rgb(138, 109, 181);
/* oklch */ color: oklch(59.2% 0.111 301.7);
Tailwind
colors: {
  custom: {
    50: '#ad97cb',
    500: '#8a6db5',
    950: '#000000',
  },
}
SCSS
$custom: #8a6db5;
$custom-light: #ad97cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6db5",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 181
  },
  "hsl": {
    "h": 264.167,
    "s": 32.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59222,
    "c": 0.11112,
    "h": 301.7
  },
  "luminance": 0.19677
}

Semantic roles & 50–950 ramp

primary
#8A6DB5
secondary
#C2CEB0
accent
#C95F9E
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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