#8A4DB4#8A4DB4

#8A4DB4 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.8% C 0.163 H 309.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A4DB4
RGBrgb(138, 77, 180)
HSLhsl(276, 41%, 50%)
HSVhsv(276, 57%, 71%)
CMYKcmyk(23.3%, 57.2%, 0%, 29.4%)
CIE-LABlab(44.24, 44.38, -44.83)
CIE-LCHlch(44.24, 63.08, 314.71°)
OKLaboklab(53.82% 0.1032 -0.126)
OKLCHoklch(53.82% 0.163 309.3)
XYZxyz(21.3717, 14.0067, 44.7489)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DB4 #77B44D
analogous
#564DB4 #8A4DB4 #B44DAA
triadic
#8A4DB4 #B48A4D #4DB48A
tetradic
#8A4DB4 #B4564D #77B44D #4DAAB4
square
#8A4DB4 #B4564D #77B44D #4DAAB4
split-complementary
#8A4DB4 #AAB44D #4DB456
monochromatic
#48285F #693A8A #8A4DB4 #A678C6 #C3A3D8

Accessibility & contrast

On white

5.52
#8A4DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A4DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DB4
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DB4#FFFFFF#000000##FFFFFF
##8A4DB41.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B7
Deuteranopia (green-blind)
#416AB1
Tritanopia (blue-blind)
#846079
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4db4;
/* rgb */ color: rgb(138, 77, 180);
/* oklch */ color: oklch(53.8% 0.163 309.3);
Tailwind
colors: {
  custom: {
    50: '#af81cb',
    500: '#8a4db4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4db4;
$custom-light: #af81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4db4",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 275.534,
    "s": 40.711,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53815,
    "c": 0.16285,
    "h": 309.3
  },
  "luminance": 0.14006
}

Semantic roles & 50–950 ramp

primary
#8A4DB4
secondary
#AAC597
accent
#D15789
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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