#8A6DC7#8A6DC7

#8A6DC7 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.2% C 0.135 H 297.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A6DC7
RGBrgb(138, 109, 199)
HSLhsl(259, 45%, 60%)
HSVhsv(259, 45%, 78%)
CMYKcmyk(30.7%, 45.2%, 0%, 22%)
CIE-LABlab(52.36, 30.99, -42.94)
CIE-LCHlch(52.36, 52.96, 305.82°)
OKLaboklab(60.18% 0.0615 -0.1206)
OKLCHoklch(60.18% 0.135 297)
XYZxyz(26.2562, 20.4638, 56.5884)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DC7 #AAC76D
analogous
#6D7DC7 #8A6DC7 #B76DC7
triadic
#8A6DC7 #C78A6D #6DC78A
tetradic
#8A6DC7 #C76D7D #AAC76D #6DC7B7
square
#8A6DC7 #C76D7D #AAC76D #6DC7B7
split-complementary
#8A6DC7 #C7B76D #7DC76D
monochromatic
#4E3386 #6844B2 #8A6DC7 #AD99D8 #D1C5E9

Accessibility & contrast

On white

4.12
#8A6DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A6DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DC7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DC7#FFFFFF#000000##000000
##8A6DC71.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#517DCA
Deuteranopia (green-blind)
#577CC5
Tritanopia (blue-blind)
#7D7D90
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6dc7;
/* rgb */ color: rgb(138, 109, 199);
/* oklch */ color: oklch(60.2% 0.135 297.0);
Tailwind
colors: {
  custom: {
    50: '#ae97d8',
    500: '#8a6dc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dc7;
$custom-light: #ae97d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dc7",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 199
  },
  "hsl": {
    "h": 259.333,
    "s": 44.554,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60182,
    "c": 0.13533,
    "h": 297
  },
  "luminance": 0.20464
}

Semantic roles & 50–950 ramp

primary
#8A6DC7
secondary
#CED9B7
accent
#B82E8B
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#110D14
muted
#807E83

Preview Lab

Preview with #8A6DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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