#8A4EC8#8A4EC8

#8A4EC8 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.2% C 0.184 H 303.6°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A4EC8
RGBrgb(138, 78, 200)
HSLhsl(270, 53%, 55%)
HSVhsv(270, 61%, 78%)
CMYKcmyk(31%, 61%, 0%, 21.6%)
CIE-LABlab(45.66, 48.60, -54.20)
CIE-LCHlch(45.66, 72.79, 311.88°)
OKLaboklab(55.25% 0.1019 -0.1535)
OKLCHoklch(55.25% 0.184 303.6)
XYZxyz(23.6286, 15.0222, 56.2871)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC8 #8CC84E
analogous
#4E4FC8 #8A4EC8 #C74EC8
triadic
#8A4EC8 #C88A4E #4EC88A
tetradic
#8A4EC8 #C84E4F #8CC84E #4EC8C7
square
#8A4EC8 #C84E4F #8CC84E #4EC8C7
split-complementary
#8A4EC8 #C8C74E #4FC84E
monochromatic
#4D2577 #6B33A5 #8A4EC8 #A97DD7 #C8ABE5

Accessibility & contrast

On white

5.24
#8A4EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8A4EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC8#FFFFFF#000000##FFFFFF
##8A4EC81.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026BCC
Deuteranopia (green-blind)
#2E6CC5
Tritanopia (blue-blind)
#7E6784
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4ec8;
/* rgb */ color: rgb(138, 78, 200);
/* oklch */ color: oklch(55.2% 0.184 303.6);
Tailwind
colors: {
  custom: {
    50: '#b082d9',
    500: '#8a4ec8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec8;
$custom-light: #b082d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec8",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 269.508,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55246,
    "c": 0.1842,
    "h": 303.6
  },
  "luminance": 0.15022
}

Semantic roles & 50–950 ramp

primary
#8A4EC8
secondary
#B9D39F
accent
#DC4C95
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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