#8A4EC4#8A4EC4

#8A4EC4 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.180 H 304.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8A4EC4
RGBrgb(138, 78, 196)
HSLhsl(271, 50%, 54%)
HSVhsv(271, 60%, 77%)
CMYKcmyk(29.6%, 60.2%, 0%, 23.1%)
CIE-LABlab(45.41, 47.63, -52.29)
CIE-LCHlch(45.41, 70.73, 312.33°)
OKLaboklab(54.98% 0.102 -0.1479)
OKLCHoklch(54.98% 0.18 304.6)
XYZxyz(23.1672, 14.8377, 53.8573)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC4 #88C44E
analogous
#4F4EC4 #8A4EC4 #C44EC3
triadic
#8A4EC4 #C48A4E #4EC48A
tetradic
#8A4EC4 #C44F4E #88C44E #4EC3C4
square
#8A4EC4 #C44F4E #88C44E #4EC3C4
split-complementary
#8A4EC4 #C3C44E #4EC44F
monochromatic
#4C2672 #6B35A0 #8A4EC4 #A87CD3 #C7AAE3

Accessibility & contrast

On white

5.29
#8A4EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8A4EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC4
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC4#FFFFFF#000000##FFFFFF
##8A4EC41.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116AC8
Deuteranopia (green-blind)
#336CC1
Tritanopia (blue-blind)
#806682
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4ec4;
/* rgb */ color: rgb(138, 78, 196);
/* oklch */ color: oklch(55.0% 0.180 304.6);
Tailwind
colors: {
  custom: {
    50: '#b082d6',
    500: '#8a4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec4;
$custom-light: #b082d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec4",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 270.508,
    "s": 50,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5498,
    "c": 0.17962,
    "h": 304.6
  },
  "luminance": 0.14838
}

Semantic roles & 50–950 ramp

primary
#8A4EC4
secondary
#B6D09E
accent
#DA4E93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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