#8A4EC9#8A4EC9

#8A4EC9 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.3% C 0.185 H 303.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8A4EC9
RGBrgb(138, 78, 201)
HSLhsl(269, 53%, 55%)
HSVhsv(269, 61%, 79%)
CMYKcmyk(31.3%, 61.2%, 0%, 21.2%)
CIE-LABlab(45.73, 48.84, -54.67)
CIE-LCHlch(45.73, 73.31, 311.77°)
OKLaboklab(55.31% 0.1018 -0.1549)
OKLCHoklch(55.31% 0.185 303.3)
XYZxyz(23.7458, 15.0691, 56.9047)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC9 #8DC94E
analogous
#4E50C9 #8A4EC9 #C74EC9
triadic
#8A4EC9 #C98A4E #4EC98A
tetradic
#8A4EC9 #C94E50 #8DC94E #4EC9C7
square
#8A4EC9 #C94E50 #8DC94E #4EC9C7
split-complementary
#8A4EC9 #C9C74E #50C94E
monochromatic
#4D2578 #6B33A7 #8A4EC9 #A97DD7 #C8ACE6

Accessibility & contrast

On white

5.23
#8A4EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A4EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC9
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC9#FFFFFF#000000##FFFFFF
##8A4EC91.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCD
Deuteranopia (green-blind)
#2D6CC6
Tritanopia (blue-blind)
#7E6884
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4ec9;
/* rgb */ color: rgb(138, 78, 201);
/* oklch */ color: oklch(55.3% 0.185 303.3);
Tailwind
colors: {
  custom: {
    50: '#b083da',
    500: '#8a4ec9',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec9;
$custom-light: #b083da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec9",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 201
  },
  "hsl": {
    "h": 269.268,
    "s": 53.247,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55313,
    "c": 0.18533,
    "h": 303.3
  },
  "luminance": 0.15069
}

Semantic roles & 50–950 ramp

primary
#8A4EC9
secondary
#BAD39F
accent
#DD4B96
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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