#8A4EB8#8A4EB8

#8A4EB8 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.166 H 307.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A4EB8
RGBrgb(138, 78, 184)
HSLhsl(274, 43%, 51%)
HSVhsv(274, 58%, 72%)
CMYKcmyk(25%, 57.6%, 0%, 27.8%)
CIE-LABlab(44.68, 44.78, -46.48)
CIE-LCHlch(44.68, 64.54, 313.93°)
OKLaboklab(54.21% 0.102 -0.1308)
OKLCHoklch(54.21% 0.166 307.9)
XYZxyz(21.8556, 14.3130, 46.9494)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EB8 #7CB84E
analogous
#554EB8 #8A4EB8 #B84EB1
triadic
#8A4EB8 #B88A4E #4EB88A
tetradic
#8A4EB8 #B8554E #7CB84E #4EB1B8
square
#8A4EB8 #B8554E #7CB84E #4EB1B8
split-complementary
#8A4EB8 #B1B84E #4EB855
monochromatic
#4A2864 #6A398F #8A4EB8 #A77ACA #C4A5DB

Accessibility & contrast

On white

5.44
#8A4EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8A4EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EB8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EB8#FFFFFF#000000##FFFFFF
##8A4EB81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2767BB
Deuteranopia (green-blind)
#3F6AB5
Tritanopia (blue-blind)
#83627B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4eb8;
/* rgb */ color: rgb(138, 78, 184);
/* oklch */ color: oklch(54.2% 0.166 307.9);
Tailwind
colors: {
  custom: {
    50: '#af82ce',
    500: '#8a4eb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eb8;
$custom-light: #af82ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eb8",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 273.962,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5421,
    "c": 0.16587,
    "h": 307.9
  },
  "luminance": 0.14313
}

Semantic roles & 50–950 ramp

primary
#8A4EB8
secondary
#AEC89A
accent
#D3558C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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