#8A4CAB#8A4CAB

#8A4CAB is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.1% C 0.154 H 312.4°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8A4CAB
RGBrgb(138, 76, 171)
HSLhsl(279, 38%, 48%)
HSVhsv(279, 56%, 67%)
CMYKcmyk(19.3%, 55.6%, 0%, 32.9%)
CIE-LABlab(43.53, 42.86, -40.67)
CIE-LCHlch(43.53, 59.09, 316.50°)
OKLaboklab(53.12% 0.1041 -0.1138)
OKLCHoklch(53.12% 0.154 312.4)
XYZxyz(20.4151, 13.5129, 40.0530)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CAB #6DAB4C
analogous
#5A4CAB #8A4CAB #AB4C9C
triadic
#8A4CAB #AB8A4C #4CAB8A
tetradic
#8A4CAB #AB5A4C #6DAB4C #4C9CAB
square
#8A4CAB #AB5A4C #6DAB4C #4C9CAB
split-complementary
#8A4CAB #9CAB4C #4CAB5A
monochromatic
#462656 #683981 #8A4CAB #A673C1 #C19ED4

Accessibility & contrast

On white

5.67
#8A4CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8A4CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CAB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CAB#FFFFFF#000000##FFFFFF
##8A4CAB1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AE
Deuteranopia (green-blind)
#4768A9
Tritanopia (blue-blind)
#875C74
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4cab;
/* rgb */ color: rgb(138, 76, 171);
/* oklch */ color: oklch(53.1% 0.154 312.4);
Tailwind
colors: {
  custom: {
    50: '#ae81c4',
    500: '#8a4cab',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cab;
$custom-light: #ae81c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cab",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 279.158,
    "s": 38.462,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53122,
    "c": 0.15425,
    "h": 312.4
  },
  "luminance": 0.13512
}

Semantic roles & 50–950 ramp

primary
#8A4CAB
secondary
#A2C092
accent
#CE5982
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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