#8A4AC6#8A4AC6

#8A4AC6 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.6% C 0.188 H 304.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8A4AC6
RGBrgb(138, 74, 198)
HSLhsl(271, 52%, 53%)
HSVhsv(271, 63%, 78%)
CMYKcmyk(30.3%, 62.6%, 0%, 22.4%)
CIE-LABlab(44.77, 50.18, -54.48)
CIE-LCHlch(44.77, 74.07, 312.65°)
OKLaboklab(54.56% 0.1067 -0.1543)
OKLCHoklch(54.56% 0.188 304.7)
XYZxyz(23.1208, 14.3782, 54.9723)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AC6 #86C64A
analogous
#4C4AC6 #8A4AC6 #C64AC4
triadic
#8A4AC6 #C68A4A #4AC68A
tetradic
#8A4AC6 #C64C4A #86C64A #4AC4C6
square
#8A4AC6 #C64C4A #86C64A #4AC4C6
split-complementary
#8A4AC6 #C4C64A #4AC64C
monochromatic
#4C2472 #6B32A0 #8A4AC6 #A879D5 #C6A7E3

Accessibility & contrast

On white

5.42
#8A4AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8A4AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AC6
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AC6#FFFFFF#000000##FFFFFF
##8A4AC61.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#2A6AC3
Tritanopia (blue-blind)
#7F6481
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4ac6;
/* rgb */ color: rgb(138, 74, 198);
/* oklch */ color: oklch(54.6% 0.188 304.7);
Tailwind
colors: {
  custom: {
    50: '#b080d8',
    500: '#8a4ac6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ac6;
$custom-light: #b080d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ac6",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 198
  },
  "hsl": {
    "h": 270.968,
    "s": 52.101,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54556,
    "c": 0.18759,
    "h": 304.7
  },
  "luminance": 0.14378
}

Semantic roles & 50–950 ramp

primary
#8A4AC6
secondary
#B5D19B
accent
#DC4C92
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A4AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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