#8A4EC5#8A4EC5

#8A4EC5 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.0% C 0.181 H 304.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A4EC5
RGBrgb(138, 78, 197)
HSLhsl(270, 51%, 54%)
HSVhsv(270, 60%, 77%)
CMYKcmyk(29.9%, 60.4%, 0%, 22.7%)
CIE-LABlab(45.47, 47.87, -52.77)
CIE-LCHlch(45.47, 71.24, 312.21°)
OKLaboklab(55.05% 0.102 -0.1493)
OKLCHoklch(55.05% 0.181 304.3)
XYZxyz(23.2814, 14.8834, 54.4588)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC5 #89C54E
analogous
#4F4EC5 #8A4EC5 #C54EC5
triadic
#8A4EC5 #C58A4E #4EC58A
tetradic
#8A4EC5 #C54F4E #89C54E #4EC5C5
square
#8A4EC5 #C54F4E #89C54E #4EC5C5
split-complementary
#8A4EC5 #C5C54E #4EC54F
monochromatic
#4D2673 #6B35A1 #8A4EC5 #A87CD4 #C7AAE3

Accessibility & contrast

On white

5.28
#8A4EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8A4EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC5
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC5#FFFFFF#000000##FFFFFF
##8A4EC51.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6AC9
Deuteranopia (green-blind)
#326CC2
Tritanopia (blue-blind)
#7F6682
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4ec5;
/* rgb */ color: rgb(138, 78, 197);
/* oklch */ color: oklch(55.0% 0.181 304.3);
Tailwind
colors: {
  custom: {
    50: '#b082d7',
    500: '#8a4ec5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec5;
$custom-light: #b082d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec5",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 197
  },
  "hsl": {
    "h": 270.252,
    "s": 50.638,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55046,
    "c": 0.18076,
    "h": 304.3
  },
  "luminance": 0.14883
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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