#8A6DB6#8A6DB6

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

Color values

HEX#8A6DB6
RGBrgb(138, 109, 182)
HSLhsl(264, 33%, 57%)
HSVhsv(264, 40%, 71%)
CMYKcmyk(24.2%, 40.1%, 0%, 28.6%)
CIE-LABlab(51.52, 26.72, -34.49)
CIE-LCHlch(51.52, 43.63, 307.76°)
OKLaboklab(59.27% 0.0585 -0.096)
OKLCHoklch(59.27% 0.112 301.4)
XYZxyz(24.3915, 19.7179, 46.7678)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DB6 #99B66D
analogous
#6D75B6 #8A6DB6 #AF6DB6
triadic
#8A6DB6 #B68A6D #6DB68A
tetradic
#8A6DB6 #B66D75 #99B66D #6DB6AF
square
#8A6DB6 #B66D75 #99B66D #6DB6AF
split-complementary
#8A6DB6 #B6AF6D #75B66D
monochromatic
#4F3870 #6B4D99 #8A6DB6 #AB96CA #CBBFDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6DB6#FFFFFF#000000##000000
##8A6DB61.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)
#5B7AB9
Deuteranopia (green-blind)
#617AB4
Tritanopia (blue-blind)
#827989
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6db6;
/* rgb */ color: rgb(138, 109, 182);
/* oklch */ color: oklch(59.3% 0.112 301.4);
Tailwind
colors: {
  custom: {
    50: '#ad97cc',
    500: '#8a6db6',
    950: '#000000',
  },
}
SCSS
$custom: #8a6db6;
$custom-light: #ad97cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6db6",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 182
  },
  "hsl": {
    "h": 263.836,
    "s": 33.333,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59273,
    "c": 0.11246,
    "h": 301.4
  },
  "luminance": 0.19718
}

Semantic roles & 50–950 ramp

primary
#8A6DB6
secondary
#C2CEB1
accent
#C95E9F
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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