#8A4CB6#8A4CB6

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

Color values

HEX#8A4CB6
RGBrgb(138, 76, 182)
HSLhsl(275, 42%, 51%)
HSVhsv(275, 58%, 71%)
CMYKcmyk(24.2%, 58.2%, 0%, 28.6%)
CIE-LABlab(44.16, 45.37, -46.13)
CIE-LCHlch(44.16, 64.71, 314.52°)
OKLaboklab(53.79% 0.1045 -0.1298)
OKLCHoklch(53.79% 0.167 308.8)
XYZxyz(21.5075, 13.9499, 45.8065)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CB6 #78B64C
analogous
#554CB6 #8A4CB6 #B64CAD
triadic
#8A4CB6 #B68A4C #4CB68A
tetradic
#8A4CB6 #B6554C #78B64C #4CADB6
square
#8A4CB6 #B6554C #78B64C #4CADB6
split-complementary
#8A4CB6 #ADB64C #4CB655
monochromatic
#492760 #69398C #8A4CB6 #A677C8 #C3A3D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A4CB6#FFFFFF#000000##FFFFFF
##8A4CB61.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)
#2666B9
Deuteranopia (green-blind)
#3E69B3
Tritanopia (blue-blind)
#84607A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4cb6;
/* rgb */ color: rgb(138, 76, 182);
/* oklch */ color: oklch(53.8% 0.167 308.8);
Tailwind
colors: {
  custom: {
    50: '#af81cc',
    500: '#8a4cb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cb6;
$custom-light: #af81cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cb6",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 275.094,
    "s": 42.063,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53793,
    "c": 0.16667,
    "h": 308.8
  },
  "luminance": 0.1395
}

Semantic roles & 50–950 ramp

primary
#8A4CB6
secondary
#ABC697
accent
#D25689
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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