#8A4DB6#8A4DB6

#8A4DB6 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.165 H 308.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8A4DB6
RGBrgb(138, 77, 182)
HSLhsl(275, 42%, 51%)
HSVhsv(275, 58%, 71%)
CMYKcmyk(24.2%, 57.7%, 0%, 28.6%)
CIE-LABlab(44.36, 44.84, -45.82)
CIE-LCHlch(44.36, 64.11, 314.38°)
OKLaboklab(53.94% 0.1032 -0.1289)
OKLCHoklch(53.94% 0.165 308.7)
XYZxyz(21.5769, 14.0888, 45.8296)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DB6 #79B64D
analogous
#554DB6 #8A4DB6 #B64DAE
triadic
#8A4DB6 #B68A4D #4DB68A
tetradic
#8A4DB6 #B6554D #79B64D #4DAEB6
square
#8A4DB6 #B6554D #79B64D #4DAEB6
split-complementary
#8A4DB6 #AEB64D #4DB655
monochromatic
#492861 #6A3A8C #8A4DB6 #A778C8 #C3A4DA

Accessibility & contrast

On white

5.50
#8A4DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8A4DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DB6
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DB6#FFFFFF#000000##FFFFFF
##8A4DB61.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2866B9
Deuteranopia (green-blind)
#406AB3
Tritanopia (blue-blind)
#84607A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4db6;
/* rgb */ color: rgb(138, 77, 182);
/* oklch */ color: oklch(53.9% 0.165 308.7);
Tailwind
colors: {
  custom: {
    50: '#af81cc',
    500: '#8a4db6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4db6;
$custom-light: #af81cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4db6",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 182
  },
  "hsl": {
    "h": 274.857,
    "s": 41.833,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53939,
    "c": 0.16513,
    "h": 308.7
  },
  "luminance": 0.14088
}

Semantic roles & 50–950 ramp

primary
#8A4DB6
secondary
#ACC798
accent
#D2568A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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