#8A4DB3#8A4DB3

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

Color values

HEX#8A4DB3
RGBrgb(138, 77, 179)
HSLhsl(276, 40%, 50%)
HSVhsv(276, 57%, 70%)
CMYKcmyk(22.9%, 57%, 0%, 29.8%)
CIE-LABlab(44.18, 44.15, -44.34)
CIE-LCHlch(44.18, 62.57, 314.88°)
OKLaboklab(53.75% 0.1031 -0.1246)
OKLCHoklch(53.75% 0.162 309.6)
XYZxyz(21.2702, 13.9661, 44.2143)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DB3 #76B34D
analogous
#574DB3 #8A4DB3 #B34DA9
triadic
#8A4DB3 #B38A4D #4DB38A
tetradic
#8A4DB3 #B3574D #76B34D #4DA9B3
square
#8A4DB3 #B3574D #76B34D #4DA9B3
split-complementary
#8A4DB3 #A9B34D #4DB357
monochromatic
#48285E #693A89 #8A4DB3 #A678C5 #C2A3D8

Accessibility & contrast

On white

5.54
#8A4DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A4DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DB3
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DB3#FFFFFF#000000##FFFFFF
##8A4DB31.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B6
Deuteranopia (green-blind)
#4269B1
Tritanopia (blue-blind)
#855F78
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4db3;
/* rgb */ color: rgb(138, 77, 179);
/* oklch */ color: oklch(53.8% 0.162 309.6);
Tailwind
colors: {
  custom: {
    50: '#af81ca',
    500: '#8a4db3',
    950: '#000000',
  },
}
SCSS
$custom: #8a4db3;
$custom-light: #af81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4db3",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 275.882,
    "s": 40.157,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53753,
    "c": 0.16172,
    "h": 309.6
  },
  "luminance": 0.13966
}

Semantic roles & 50–950 ramp

primary
#8A4DB3
secondary
#A9C597
accent
#D05888
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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