#8A4EC6#8A4EC6

#8A4EC6 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.1% C 0.182 H 304.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8A4EC6
RGBrgb(138, 78, 198)
HSLhsl(270, 51%, 54%)
HSVhsv(270, 61%, 78%)
CMYKcmyk(30.3%, 60.6%, 0%, 22.4%)
CIE-LABlab(45.54, 48.11, -53.24)
CIE-LCHlch(45.54, 71.76, 312.10°)
OKLaboklab(55.11% 0.1019 -0.1507)
OKLCHoklch(55.11% 0.182 304.1)
XYZxyz(23.3964, 14.9293, 55.0642)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC6 #8AC64E
analogous
#4E4EC6 #8A4EC6 #C64EC6
triadic
#8A4EC6 #C68A4E #4EC68A
tetradic
#8A4EC6 #C64E4E #8AC64E #4EC6C6
square
#8A4EC6 #C64E4E #8AC64E #4EC6C6
split-complementary
#8A4EC6 #C6C64E #4EC64E
monochromatic
#4D2574 #6B34A2 #8A4EC6 #A97CD5 #C7ABE4

Accessibility & contrast

On white

5.27
#8A4EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A4EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC6
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC6#FFFFFF#000000##FFFFFF
##8A4EC61.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6ACA
Deuteranopia (green-blind)
#316CC3
Tritanopia (blue-blind)
#7F6783
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4ec6;
/* rgb */ color: rgb(138, 78, 198);
/* oklch */ color: oklch(55.1% 0.182 304.1);
Tailwind
colors: {
  custom: {
    50: '#b082d8',
    500: '#8a4ec6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec6;
$custom-light: #b082d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec6",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 198
  },
  "hsl": {
    "h": 270,
    "s": 51.282,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55112,
    "c": 0.1819,
    "h": 304.1
  },
  "luminance": 0.14929
}

Semantic roles & 50–950 ramp

primary
#8A4EC6
secondary
#B8D19E
accent
#DB4D94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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