#8A4FAC#8A4FAC

#8A4FAC is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.6% C 0.151 H 311.6°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A4FAC
RGBrgb(138, 79, 172)
HSLhsl(278, 37%, 49%)
HSVhsv(278, 54%, 67%)
CMYKcmyk(19.8%, 54.1%, 0%, 32.5%)
CIE-LABlab(44.20, 41.47, -40.20)
CIE-LCHlch(44.20, 57.75, 315.89°)
OKLaboklab(53.63% 0.1 -0.1125)
OKLCHoklch(53.63% 0.151 311.6)
XYZxyz(20.7223, 13.9742, 40.6274)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FAC #71AC4F
analogous
#5C4FAC #8A4FAC #AC4FA0
triadic
#8A4FAC #AC8A4F #4FAC8A
tetradic
#8A4FAC #AC5C4F #71AC4F #4FA0AC
square
#8A4FAC #AC5C4F #71AC4F #4FA0AC
split-complementary
#8A4FAC #A0AC4F #4FAC5C
monochromatic
#472858 #683C82 #8A4FAC #A677C1 #C2A1D4

Accessibility & contrast

On white

5.53
#8A4FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A4FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FAC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FAC#FFFFFF#000000##FFFFFF
##8A4FAC1.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3666AF
Deuteranopia (green-blind)
#496AAA
Tritanopia (blue-blind)
#865F76
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4fac;
/* rgb */ color: rgb(138, 79, 172);
/* oklch */ color: oklch(53.6% 0.151 311.6);
Tailwind
colors: {
  custom: {
    50: '#ae83c5',
    500: '#8a4fac',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fac;
$custom-light: #ae83c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fac",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 278.065,
    "s": 37.052,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53633,
    "c": 0.15053,
    "h": 311.6
  },
  "luminance": 0.13974
}

Semantic roles & 50–950 ramp

primary
#8A4FAC
secondary
#A6C196
accent
#CD5B85
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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