#8A4CA6#8A4CA6

#8A4CA6 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 52.8% C 0.149 H 314.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A4CA6
RGBrgb(138, 76, 166)
HSLhsl(281, 37%, 47%)
HSVhsv(281, 54%, 65%)
CMYKcmyk(16.9%, 54.2%, 0%, 34.9%)
CIE-LABlab(43.25, 41.75, -38.15)
CIE-LCHlch(43.25, 56.55, 317.58°)
OKLaboklab(52.83% 0.1037 -0.1065)
OKLCHoklch(52.83% 0.149 314.2)
XYZxyz(19.9475, 13.3259, 37.5904)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CA6 #68A64C
analogous
#5D4CA6 #8A4CA6 #A64C95
triadic
#8A4CA6 #A68A4C #4CA68A
tetradic
#8A4CA6 #A65D4C #68A64C #4C95A6
square
#8A4CA6 #A65D4C #68A64C #4C95A6
split-complementary
#8A4CA6 #95A64C #4CA65D
monochromatic
#442652 #67397C #8A4CA6 #A671BE #C09BD1

Accessibility & contrast

On white

5.73
#8A4CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A4CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CA6
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CA6#FFFFFF#000000##FFFFFF
##8A4CA61.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663A9
Deuteranopia (green-blind)
#4A68A4
Tritanopia (blue-blind)
#885B72
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4ca6;
/* rgb */ color: rgb(138, 76, 166);
/* oklch */ color: oklch(52.8% 0.149 314.2);
Tailwind
colors: {
  custom: {
    50: '#ae80c1',
    500: '#8a4ca6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ca6;
$custom-light: #ae80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ca6",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 166
  },
  "hsl": {
    "h": 281.333,
    "s": 37.19,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5283,
    "c": 0.14865,
    "h": 314.2
  },
  "luminance": 0.13325
}

Semantic roles & 50–950 ramp

primary
#8A4CA6
secondary
#9EBE90
accent
#CD5B7E
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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