#8A6EC4#8A6EC4

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

Color values

HEX#8A6EC4
RGBrgb(138, 110, 196)
HSLhsl(260, 42%, 60%)
HSVhsv(260, 44%, 77%)
CMYKcmyk(29.6%, 43.9%, 0%, 23.1%)
CIE-LABlab(52.44, 29.64, -41.09)
CIE-LCHlch(52.44, 50.67, 305.80°)
OKLaboklab(60.2% 0.0596 -0.1152)
OKLCHoklch(60.2% 0.13 297.4)
XYZxyz(26.0186, 20.5404, 54.8078)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EC4 #A8C46E
analogous
#6E7DC4 #8A6EC4 #B56EC4
triadic
#8A6EC4 #C48A6E #6EC48A
tetradic
#8A6EC4 #C46E7D #A8C46E #6EC4B5
square
#8A6EC4 #C46E7D #A8C46E #6EC4B5
split-complementary
#8A6EC4 #C4B56E #7DC46E
monochromatic
#4E3583 #6847AE #8A6EC4 #AD99D6 #D0C5E7

Accessibility & contrast

On white

4.11
#8A6EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A6EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EC4
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EC4#FFFFFF#000000##000000
##8A6EC41.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#547DC7
Deuteranopia (green-blind)
#5A7CC2
Tritanopia (blue-blind)
#7E7D8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6ec4;
/* rgb */ color: rgb(138, 110, 196);
/* oklch */ color: oklch(60.2% 0.130 297.4);
Tailwind
colors: {
  custom: {
    50: '#ae98d6',
    500: '#8a6ec4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ec4;
$custom-light: #ae98d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ec4",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 196
  },
  "hsl": {
    "h": 259.535,
    "s": 42.157,
    "l": 60
  },
  "oklch": {
    "l": 0.60196,
    "c": 0.1297,
    "h": 297.4
  },
  "luminance": 0.20541
}

Semantic roles & 50–950 ramp

primary
#8A6EC4
secondary
#CDD7B6
accent
#D256AA
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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