#8A4AB2#8A4AB2

#8A4AB2 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.165 H 310.4°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8A4AB2
RGBrgb(138, 74, 178)
HSLhsl(277, 41%, 49%)
HSVhsv(277, 58%, 70%)
CMYKcmyk(22.5%, 58.4%, 0%, 30.2%)
CIE-LABlab(43.53, 45.51, -44.79)
CIE-LCHlch(43.53, 63.85, 315.45°)
OKLaboklab(53.26% 0.107 -0.1259)
OKLCHoklch(53.26% 0.165 310.4)
XYZxyz(20.9644, 13.5156, 43.6152)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AB2 #72B24A
analogous
#564AB2 #8A4AB2 #B24AA6
triadic
#8A4AB2 #B28A4A #4AB28A
tetradic
#8A4AB2 #B2564A #72B24A #4AA6B2
square
#8A4AB2 #B2564A #72B24A #4AA6B2
split-complementary
#8A4AB2 #A6B24A #4AB256
monochromatic
#47265C #683887 #8A4AB2 #A674C5 #C29FD7

Accessibility & contrast

On white

5.67
#8A4AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8A4AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AB2
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AB2#FFFFFF#000000##FFFFFF
##8A4AB21.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#4068AF
Tritanopia (blue-blind)
#855D77
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4ab2;
/* rgb */ color: rgb(138, 74, 178);
/* oklch */ color: oklch(53.3% 0.165 310.4);
Tailwind
colors: {
  custom: {
    50: '#af7fc9',
    500: '#8a4ab2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ab2;
$custom-light: #af7fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ab2",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 276.923,
    "s": 41.27,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53255,
    "c": 0.16524,
    "h": 310.4
  },
  "luminance": 0.13515
}

Semantic roles & 50–950 ramp

primary
#8A4AB2
secondary
#A6C494
accent
#D15786
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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