#8A4EC3#8A4EC3

#8A4EC3 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.9% C 0.178 H 304.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A4EC3
RGBrgb(138, 78, 195)
HSLhsl(271, 49%, 54%)
HSVhsv(271, 60%, 76%)
CMYKcmyk(29.2%, 60%, 0%, 23.5%)
CIE-LABlab(45.35, 47.39, -51.81)
CIE-LCHlch(45.35, 70.21, 312.45°)
OKLaboklab(54.91% 0.102 -0.1465)
OKLCHoklch(54.91% 0.178 304.9)
XYZxyz(23.0538, 14.7923, 53.2599)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EC3 #87C34E
analogous
#4F4EC3 #8A4EC3 #C34EC1
triadic
#8A4EC3 #C38A4E #4EC38A
tetradic
#8A4EC3 #C34F4E #87C34E #4EC1C3
square
#8A4EC3 #C34F4E #87C34E #4EC1C3
split-complementary
#8A4EC3 #C1C34E #4EC34F
monochromatic
#4C2670 #6B369E #8A4EC3 #A87CD2 #C6A9E2

Accessibility & contrast

On white

5.31
#8A4EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8A4EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EC3
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EC3#FFFFFF#000000##FFFFFF
##8A4EC31.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146AC7
Deuteranopia (green-blind)
#346BC0
Tritanopia (blue-blind)
#806681
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4ec3;
/* rgb */ color: rgb(138, 78, 195);
/* oklch */ color: oklch(54.9% 0.178 304.9);
Tailwind
colors: {
  custom: {
    50: '#b082d6',
    500: '#8a4ec3',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ec3;
$custom-light: #b082d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ec3",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 195
  },
  "hsl": {
    "h": 270.769,
    "s": 49.367,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54914,
    "c": 0.17847,
    "h": 304.9
  },
  "luminance": 0.14792
}

Semantic roles & 50–950 ramp

primary
#8A4EC3
secondary
#B6CF9D
accent
#D94F92
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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