#8A4CB8#8A4CB8

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

Color values

HEX#8A4CB8
RGBrgb(138, 76, 184)
HSLhsl(274, 43%, 51%)
HSVhsv(274, 59%, 72%)
CMYKcmyk(25%, 58.7%, 0%, 27.8%)
CIE-LABlab(44.28, 45.84, -47.11)
CIE-LCHlch(44.28, 65.73, 314.21°)
OKLaboklab(53.92% 0.1046 -0.1327)
OKLCHoklch(53.92% 0.169 308.2)
XYZxyz(21.7157, 14.0332, 46.9028)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CB8 #7AB84C
analogous
#544CB8 #8A4CB8 #B84CB0
triadic
#8A4CB8 #B88A4C #4CB88A
tetradic
#8A4CB8 #B8544C #7AB84C #4CB0B8
square
#8A4CB8 #B8544C #7AB84C #4CB0B8
split-complementary
#8A4CB8 #B0B84C #4CB854
monochromatic
#492763 #6A388E #8A4CB8 #A778C9 #C3A4DB

Accessibility & contrast

On white

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

On black

3.81
#8A4CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A4CB8#FFFFFF#000000##FFFFFF
##8A4CB81.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BB
Deuteranopia (green-blind)
#3D69B5
Tritanopia (blue-blind)
#83607B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4cb8;
/* rgb */ color: rgb(138, 76, 184);
/* oklch */ color: oklch(53.9% 0.169 308.2);
Tailwind
colors: {
  custom: {
    50: '#af81ce',
    500: '#8a4cb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cb8;
$custom-light: #af81ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cb8",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 274.444,
    "s": 43.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53919,
    "c": 0.16893,
    "h": 308.2
  },
  "luminance": 0.14033
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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