#8A4FAD#8A4FAD

#8A4FAD is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.7% C 0.152 H 311.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A4FAD
RGBrgb(138, 79, 173)
HSLhsl(278, 37%, 49%)
HSVhsv(278, 54%, 68%)
CMYKcmyk(20.2%, 54.3%, 0%, 32.2%)
CIE-LABlab(44.25, 41.70, -40.70)
CIE-LCHlch(44.25, 58.27, 315.69°)
OKLaboklab(53.69% 0.1001 -0.1139)
OKLCHoklch(53.69% 0.152 311.3)
XYZxyz(20.8187, 14.0128, 41.1351)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FAD #72AD4F
analogous
#5B4FAD #8A4FAD #AD4FA1
triadic
#8A4FAD #AD8A4F #4FAD8A
tetradic
#8A4FAD #AD5B4F #72AD4F #4FA1AD
square
#8A4FAD #AD5B4F #72AD4F #4FA1AD
split-complementary
#8A4FAD #A1AD4F #4FAD5B
monochromatic
#472959 #683C83 #8A4FAD #A678C1 #C2A2D4

Accessibility & contrast

On white

5.52
#8A4FAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A4FAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FAD
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FAD#FFFFFF#000000##FFFFFF
##8A4FAD1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3566B0
Deuteranopia (green-blind)
#486AAB
Tritanopia (blue-blind)
#865F76
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4fad;
/* rgb */ color: rgb(138, 79, 173);
/* oklch */ color: oklch(53.7% 0.152 311.3);
Tailwind
colors: {
  custom: {
    50: '#ae83c6',
    500: '#8a4fad',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fad;
$custom-light: #ae83c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fad",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 173
  },
  "hsl": {
    "h": 277.66,
    "s": 37.302,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53692,
    "c": 0.15167,
    "h": 311.3
  },
  "luminance": 0.14012
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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