#8A4DB1#8A4DB1

#8A4DB1 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.6% C 0.159 H 310.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8A4DB1
RGBrgb(138, 77, 177)
HSLhsl(277, 39%, 50%)
HSVhsv(277, 56%, 69%)
CMYKcmyk(22%, 56.5%, 0%, 30.6%)
CIE-LABlab(44.07, 43.69, -43.35)
CIE-LCHlch(44.07, 61.54, 315.22°)
OKLaboklab(53.63% 0.1031 -0.1217)
OKLCHoklch(53.63% 0.159 310.3)
XYZxyz(21.0694, 13.8858, 43.1567)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DB1 #74B14D
analogous
#584DB1 #8A4DB1 #B14DA6
triadic
#8A4DB1 #B18A4D #4DB18A
tetradic
#8A4DB1 #B1584D #74B14D #4DA6B1
square
#8A4DB1 #B1584D #74B14D #4DA6B1
split-complementary
#8A4DB1 #A6B14D #4DB158
monochromatic
#47285C #693A86 #8A4DB1 #A677C4 #C2A2D6

Accessibility & contrast

On white

5.56
#8A4DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A4DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DB1
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DB1#FFFFFF#000000##FFFFFF
##8A4DB11.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D65B4
Deuteranopia (green-blind)
#4469AF
Tritanopia (blue-blind)
#855F77
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4db1;
/* rgb */ color: rgb(138, 77, 177);
/* oklch */ color: oklch(53.6% 0.159 310.3);
Tailwind
colors: {
  custom: {
    50: '#af81c9',
    500: '#8a4db1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4db1;
$custom-light: #af81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4db1",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 276.6,
    "s": 39.37,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53631,
    "c": 0.15945,
    "h": 310.3
  },
  "luminance": 0.13885
}

Semantic roles & 50–950 ramp

primary
#8A4DB1
secondary
#A8C496
accent
#CF5987
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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