#8A4ACC#8A4ACC

#8A4ACC is a mid, vivid violet. Relative luminance 0.147; OKLCH L 55.0% C 0.194 H 303.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A4ACC
RGBrgb(138, 74, 204)
HSLhsl(270, 56%, 55%)
HSVhsv(270, 64%, 80%)
CMYKcmyk(32.4%, 63.7%, 0%, 20%)
CIE-LABlab(45.17, 51.62, -57.31)
CIE-LCHlch(45.17, 77.13, 312.01°)
OKLaboklab(54.97% 0.1063 -0.1626)
OKLCHoklch(54.97% 0.194 303.2)
XYZxyz(23.8266, 14.6605, 58.6895)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ACC #8CCC4A
analogous
#4A4BCC #8A4ACC #CB4ACC
triadic
#8A4ACC #CC8A4A #4ACC8A
tetradic
#8A4ACC #CC4A4B #8CCC4A #4ACCCB
square
#8A4ACC #CC4A4B #8CCC4A #4ACCCB
split-complementary
#8A4ACC #CCCB4A #4BCC4A
monochromatic
#4D2279 #6B30A9 #8A4ACC #A97AD9 #C8A9E7

Accessibility & contrast

On white

5.34
#8A4ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8A4ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ACC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ACC#FFFFFF#000000##FFFFFF
##8A4ACC1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#206BC9
Tritanopia (blue-blind)
#7D6684
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4acc;
/* rgb */ color: rgb(138, 74, 204);
/* oklch */ color: oklch(55.0% 0.194 303.2);
Tailwind
colors: {
  custom: {
    50: '#b180dc',
    500: '#8a4acc',
    950: '#000000',
  },
}
SCSS
$custom: #8a4acc;
$custom-light: #b180dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4acc",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 269.538,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54968,
    "c": 0.19429,
    "h": 303.2
  },
  "luminance": 0.1466
}

Semantic roles & 50–950 ramp

primary
#8A4ACC
secondary
#B9D49D
accent
#DF4895
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A4ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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