#8A4ABB#8A4ABB

#8A4ABB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.175 H 307.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8A4ABB
RGBrgb(138, 74, 187)
HSLhsl(274, 45%, 51%)
HSVhsv(274, 60%, 73%)
CMYKcmyk(26.2%, 60.4%, 0%, 26.7%)
CIE-LABlab(44.07, 47.58, -49.20)
CIE-LCHlch(44.07, 68.44, 314.04°)
OKLaboklab(53.83% 0.1071 -0.1388)
OKLCHoklch(53.83% 0.175 307.7)
XYZxyz(21.8978, 13.8890, 48.5313)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ABB #7BBB4A
analogous
#514ABB #8A4ABB #BB4AB4
triadic
#8A4ABB #BB8A4A #4ABB8A
tetradic
#8A4ABB #BB514A #7BBB4A #4AB4BB
square
#8A4ABB #BB514A #7BBB4A #4AB4BB
split-complementary
#8A4ABB #B4BB4A #4ABB51
monochromatic
#492665 #6A3791 #8A4ABB #A776CC #C4A3DC

Accessibility & contrast

On white

5.56
#8A4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A4ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ABB
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ABB#FFFFFF#000000##FFFFFF
##8A4ABB1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1866BF
Deuteranopia (green-blind)
#3869B8
Tritanopia (blue-blind)
#82607B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4abb;
/* rgb */ color: rgb(138, 74, 187);
/* oklch */ color: oklch(53.8% 0.175 307.7);
Tailwind
colors: {
  custom: {
    50: '#af80d0',
    500: '#8a4abb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4abb;
$custom-light: #af80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4abb",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 273.982,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53826,
    "c": 0.1753,
    "h": 307.7
  },
  "luminance": 0.13889
}

Semantic roles & 50–950 ramp

primary
#8A4ABB
secondary
#ADC997
accent
#D5538B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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