#8A4BB9#8A4BB9

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

Color values

HEX#8A4BB9
RGBrgb(138, 75, 185)
HSLhsl(274, 44%, 51%)
HSVhsv(274, 59%, 73%)
CMYKcmyk(25.4%, 59.5%, 0%, 27.5%)
CIE-LABlab(44.14, 46.60, -47.92)
CIE-LCHlch(44.14, 66.84, 314.20°)
OKLaboklab(53.84% 0.1058 -0.135)
OKLCHoklch(53.84% 0.172 308.1)
XYZxyz(21.7525, 13.9385, 47.4340)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BB9 #7AB94B
analogous
#534BB9 #8A4BB9 #B94BB1
triadic
#8A4BB9 #B98A4B #4BB98A
tetradic
#8A4BB9 #B9534B #7AB94B #4BB1B9
square
#8A4BB9 #B9534B #7AB94B #4BB1B9
split-complementary
#8A4BB9 #B1B94B #4BB953
monochromatic
#492763 #6A388F #8A4BB9 #A777CA #C3A3DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A4BB9#FFFFFF#000000##FFFFFF
##8A4BB91.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)
#1F66BD
Deuteranopia (green-blind)
#3B69B6
Tritanopia (blue-blind)
#83607B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4bb9;
/* rgb */ color: rgb(138, 75, 185);
/* oklch */ color: oklch(53.8% 0.172 308.1);
Tailwind
colors: {
  custom: {
    50: '#af80cf',
    500: '#8a4bb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bb9;
$custom-light: #af80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bb9",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 274.364,
    "s": 44,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53839,
    "c": 0.17157,
    "h": 308.1
  },
  "luminance": 0.13938
}

Semantic roles & 50–950 ramp

primary
#8A4BB9
secondary
#ACC898
accent
#D4548B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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