#8A4AA8#8A4AA8

#8A4AA8 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 52.6% C 0.154 H 313.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A4AA8
RGBrgb(138, 74, 168)
HSLhsl(281, 39%, 47%)
HSVhsv(281, 56%, 66%)
CMYKcmyk(17.9%, 56%, 0%, 34.1%)
CIE-LABlab(42.96, 43.26, -39.80)
CIE-LCHlch(42.96, 58.78, 317.38°)
OKLaboklab(52.65% 0.1066 -0.1113)
OKLCHoklch(52.65% 0.154 313.8)
XYZxyz(19.9967, 13.1285, 38.5189)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AA8 #68A84A
analogous
#5B4AA8 #8A4AA8 #A84A97
triadic
#8A4AA8 #A88A4A #4AA88A
tetradic
#8A4AA8 #A85B4A #68A84A #4A97A8
square
#8A4AA8 #A85B4A #68A84A #4A97A8
split-complementary
#8A4AA8 #97A84A #4AA85B
monochromatic
#442553 #67377E #8A4AA8 #A66FC0 #C09AD2

Accessibility & contrast

On white

5.79
#8A4AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8A4AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AA8
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AA8#FFFFFF#000000##FFFFFF
##8A4AA81.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#4767A6
Tritanopia (blue-blind)
#875A72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4aa8;
/* rgb */ color: rgb(138, 74, 168);
/* oklch */ color: oklch(52.6% 0.154 313.8);
Tailwind
colors: {
  custom: {
    50: '#ae7fc2',
    500: '#8a4aa8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aa8;
$custom-light: #ae7fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aa8",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 280.851,
    "s": 38.843,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5265,
    "c": 0.15412,
    "h": 313.8
  },
  "luminance": 0.13128
}

Semantic roles & 50–950 ramp

primary
#8A4AA8
secondary
#9EBF8F
accent
#CF597F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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