#8A4DB8#8A4DB8

#8A4DB8 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.167 H 308.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A4DB8
RGBrgb(138, 77, 184)
HSLhsl(274, 43%, 51%)
HSVhsv(274, 58%, 72%)
CMYKcmyk(25%, 58.2%, 0%, 27.8%)
CIE-LABlab(44.48, 45.31, -46.80)
CIE-LCHlch(44.48, 65.14, 314.07°)
OKLaboklab(54.06% 0.1033 -0.1318)
OKLCHoklch(54.06% 0.167 308.1)
XYZxyz(21.7851, 14.1720, 46.9259)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DB8 #7BB84D
analogous
#544DB8 #8A4DB8 #B84DB0
triadic
#8A4DB8 #B88A4D #4DB88A
tetradic
#8A4DB8 #B8544D #7BB84D #4DB0B8
square
#8A4DB8 #B8544D #7BB84D #4DB0B8
split-complementary
#8A4DB8 #B0B84D #4DB854
monochromatic
#492863 #6A398F #8A4DB8 #A779C9 #C4A4DB

Accessibility & contrast

On white

5.48
#8A4DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A4DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DB8
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DB8#FFFFFF#000000##FFFFFF
##8A4DB81.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2567BB
Deuteranopia (green-blind)
#3E6AB5
Tritanopia (blue-blind)
#83617B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4db8;
/* rgb */ color: rgb(138, 77, 184);
/* oklch */ color: oklch(54.1% 0.167 308.1);
Tailwind
colors: {
  custom: {
    50: '#af81ce',
    500: '#8a4db8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4db8;
$custom-light: #af81ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4db8",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 274.206,
    "s": 42.972,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54064,
    "c": 0.16741,
    "h": 308.1
  },
  "luminance": 0.14172
}

Semantic roles & 50–950 ramp

primary
#8A4DB8
secondary
#ADC899
accent
#D3558B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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