#8A6EC5#8A6EC5

#8A6EC5 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.3% C 0.131 H 297.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A6EC5
RGBrgb(138, 110, 197)
HSLhsl(259, 43%, 60%)
HSVhsv(259, 44%, 77%)
CMYKcmyk(29.9%, 44.2%, 0%, 22.7%)
CIE-LABlab(52.49, 29.90, -41.58)
CIE-LCHlch(52.49, 51.21, 305.71°)
OKLaboklab(60.25% 0.0598 -0.1166)
OKLCHoklch(60.25% 0.131 297.1)
XYZxyz(26.1328, 20.5861, 55.4092)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EC5 #A9C56E
analogous
#6E7EC5 #8A6EC5 #B56EC5
triadic
#8A6EC5 #C58A6E #6EC58A
tetradic
#8A6EC5 #C56E7E #A9C56E #6EC5B5
square
#8A6EC5 #C56E7E #A9C56E #6EC5B5
split-complementary
#8A6EC5 #C5B56E #7EC56E
monochromatic
#4E3584 #6846B0 #8A6EC5 #AD9AD6 #D1C5E8

Accessibility & contrast

On white

4.10
#8A6EC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#8A6EC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EC5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EC5#FFFFFF#000000##000000
##8A6EC51.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#547EC8
Deuteranopia (green-blind)
#597CC3
Tritanopia (blue-blind)
#7E7E90
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6ec5;
/* rgb */ color: rgb(138, 110, 197);
/* oklch */ color: oklch(60.3% 0.131 297.1);
Tailwind
colors: {
  custom: {
    50: '#ae98d7',
    500: '#8a6ec5',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ec5;
$custom-light: #ae98d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ec5",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 197
  },
  "hsl": {
    "h": 259.31,
    "s": 42.857,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60251,
    "c": 0.13104,
    "h": 297.1
  },
  "luminance": 0.20586
}

Semantic roles & 50–950 ramp

primary
#8A6EC5
secondary
#CDD8B7
accent
#B6308B
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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