#8A4EB5#8A4EB5

#8A4EB5 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.162 H 308.8°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8A4EB5
RGBrgb(138, 78, 181)
HSLhsl(275, 41%, 51%)
HSVhsv(275, 57%, 71%)
CMYKcmyk(23.8%, 56.9%, 0%, 29%)
CIE-LABlab(44.50, 44.08, -45.00)
CIE-LCHlch(44.50, 62.99, 314.40°)
OKLaboklab(54.02% 0.1019 -0.1265)
OKLCHoklch(54.02% 0.162 308.8)
XYZxyz(21.5445, 14.1886, 45.3108)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EB5 #79B54E
analogous
#564EB5 #8A4EB5 #B54EAD
triadic
#8A4EB5 #B58A4E #4EB58A
tetradic
#8A4EB5 #B5564E #79B54E #4EADB5
square
#8A4EB5 #B5564E #79B54E #4EADB5
split-complementary
#8A4EB5 #ADB54E #4EB556
monochromatic
#492860 #6A3A8B #8A4EB5 #A779C7 #C3A4D9

Accessibility & contrast

On white

5.47
#8A4EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8A4EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EB5
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EB5#FFFFFF#000000##FFFFFF
##8A4EB51.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B67B8
Deuteranopia (green-blind)
#416AB2
Tritanopia (blue-blind)
#84617A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4eb5;
/* rgb */ color: rgb(138, 78, 181);
/* oklch */ color: oklch(54.0% 0.162 308.8);
Tailwind
colors: {
  custom: {
    50: '#af82cc',
    500: '#8a4eb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eb5;
$custom-light: #af82cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eb5",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 274.951,
    "s": 41.036,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54024,
    "c": 0.16244,
    "h": 308.8
  },
  "luminance": 0.14188
}

Semantic roles & 50–950 ramp

primary
#8A4EB5
secondary
#ACC699
accent
#D1578A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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