#8A4EB6#8A4EB6

#8A4EB6 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.164 H 308.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A4EB6
RGBrgb(138, 78, 182)
HSLhsl(275, 42%, 51%)
HSVhsv(275, 57%, 71%)
CMYKcmyk(24.2%, 57.1%, 0%, 28.6%)
CIE-LABlab(44.56, 44.31, -45.50)
CIE-LCHlch(44.56, 63.51, 314.24°)
OKLaboklab(54.09% 0.1019 -0.128)
OKLCHoklch(54.09% 0.164 308.5)
XYZxyz(21.6474, 14.2298, 45.8531)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EB6 #7AB64E
analogous
#564EB6 #8A4EB6 #B64EAE
triadic
#8A4EB6 #B68A4E #4EB68A
tetradic
#8A4EB6 #B6564E #7AB64E #4EAEB6
square
#8A4EB6 #B6564E #7AB64E #4EAEB6
split-complementary
#8A4EB6 #AEB64E #4EB656
monochromatic
#492861 #6A3A8D #8A4EB6 #A779C8 #C3A5DA

Accessibility & contrast

On white

5.46
#8A4EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A4EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EB6
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EB6#FFFFFF#000000##FFFFFF
##8A4EB61.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a4eb6;
/* rgb */ color: rgb(138, 78, 182);
/* oklch */ color: oklch(54.1% 0.164 308.5);
Tailwind
colors: {
  custom: {
    50: '#af82cc',
    500: '#8a4eb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eb6;
$custom-light: #af82cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eb6",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 182
  },
  "hsl": {
    "h": 274.615,
    "s": 41.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54086,
    "c": 0.16358,
    "h": 308.5
  },
  "luminance": 0.14229
}

Semantic roles & 50–950 ramp

primary
#8A4EB6
secondary
#ACC799
accent
#D1568A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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