#8A6DC1#8A6DC1

#8A6DC1 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 59.9% C 0.127 H 298.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A6DC1
RGBrgb(138, 109, 193)
HSLhsl(261, 40%, 59%)
HSVhsv(261, 44%, 76%)
CMYKcmyk(28.5%, 43.5%, 0%, 24.3%)
CIE-LABlab(52.05, 29.46, -39.99)
CIE-LCHlch(52.05, 49.67, 306.38°)
OKLaboklab(59.85% 0.0605 -0.112)
OKLCHoklch(59.85% 0.127 298.4)
XYZxyz(25.5732, 20.1906, 52.9916)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DC1 #A4C16D
analogous
#6D7AC1 #8A6DC1 #B46DC1
triadic
#8A6DC1 #C18A6D #6DC18A
tetradic
#8A6DC1 #C16D7A #A4C16D #6DC1B4
square
#8A6DC1 #C16D7A #A4C16D #6DC1B4
split-complementary
#8A6DC1 #C1B46D #7AC16D
monochromatic
#4F367E #6948A9 #8A6DC1 #AC98D3 #CFC3E5

Accessibility & contrast

On white

4.17
#8A6DC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8A6DC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DC1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DC1#FFFFFF#000000##000000
##8A6DC11.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#557CC4
Deuteranopia (green-blind)
#5A7BBF
Tritanopia (blue-blind)
#7F7C8E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6dc1;
/* rgb */ color: rgb(138, 109, 193);
/* oklch */ color: oklch(59.9% 0.127 298.4);
Tailwind
colors: {
  custom: {
    50: '#ae97d4',
    500: '#8a6dc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dc1;
$custom-light: #ae97d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dc1",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 193
  },
  "hsl": {
    "h": 260.714,
    "s": 40.385,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59852,
    "c": 0.12728,
    "h": 298.4
  },
  "luminance": 0.20191
}

Semantic roles & 50–950 ramp

primary
#8A6DC1
secondary
#CAD5B4
accent
#D058A7
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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