#8A4DAA#8A4DAA

#8A4DAA is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.2% C 0.152 H 312.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A4DAA
RGBrgb(138, 77, 170)
HSLhsl(279, 38%, 48%)
HSVhsv(279, 55%, 67%)
CMYKcmyk(18.8%, 54.7%, 0%, 33.3%)
CIE-LABlab(43.67, 42.10, -39.85)
CIE-LCHlch(43.67, 57.97, 316.57°)
OKLaboklab(53.21% 0.1026 -0.1114)
OKLCHoklch(53.21% 0.152 312.6)
XYZxyz(20.3896, 13.6138, 39.5761)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DAA #6DAA4D
analogous
#5B4DAA #8A4DAA #AA4D9B
triadic
#8A4DAA #AA8A4D #4DAA8A
tetradic
#8A4DAA #AA5B4D #6DAA4D #4D9BAA
square
#8A4DAA #AA5B4D #6DAA4D #4D9BAA
split-complementary
#8A4DAA #9BAA4D #4DAA5B
monochromatic
#462756 #683A80 #8A4DAA #A674C0 #C19ED3

Accessibility & contrast

On white

5.64
#8A4DAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8A4DAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DAA
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DAA#FFFFFF#000000##FFFFFF
##8A4DAA1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AD
Deuteranopia (green-blind)
#4869A8
Tritanopia (blue-blind)
#875D74
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4daa;
/* rgb */ color: rgb(138, 77, 170);
/* oklch */ color: oklch(53.2% 0.152 312.6);
Tailwind
colors: {
  custom: {
    50: '#ae81c4',
    500: '#8a4daa',
    950: '#000000',
  },
}
SCSS
$custom: #8a4daa;
$custom-light: #ae81c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4daa",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 170
  },
  "hsl": {
    "h": 279.355,
    "s": 37.652,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53213,
    "c": 0.15151,
    "h": 312.6
  },
  "luminance": 0.13613
}

Semantic roles & 50–950 ramp

primary
#8A4DAA
secondary
#A2C093
accent
#CE5A82
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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