#8A4BA6#8A4BA6

#8A4BA6 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 52.7% C 0.150 H 314.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A4BA6
RGBrgb(138, 75, 166)
HSLhsl(282, 38%, 47%)
HSVhsv(282, 55%, 65%)
CMYKcmyk(16.9%, 54.8%, 0%, 34.9%)
CIE-LABlab(43.05, 42.28, -38.47)
CIE-LCHlch(43.05, 57.16, 317.70°)
OKLaboklab(52.68% 0.1051 -0.1074)
OKLCHoklch(52.68% 0.15 314.4)
XYZxyz(19.8791, 13.1892, 37.5676)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BA6 #67A64B
analogous
#5C4BA6 #8A4BA6 #A64B95
triadic
#8A4BA6 #A68A4B #4BA68A
tetradic
#8A4BA6 #A65C4B #67A64B #4B95A6
square
#8A4BA6 #A65C4B #67A64B #4B95A6
split-complementary
#8A4BA6 #95A64B #4BA65C
monochromatic
#442552 #67387C #8A4BA6 #A670BE #C09AD1

Accessibility & contrast

On white

5.77
#8A4BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A4BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BA6
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BA6#FFFFFF#000000##FFFFFF
##8A4BA61.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#4967A4
Tritanopia (blue-blind)
#885A71
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4ba6;
/* rgb */ color: rgb(138, 75, 166);
/* oklch */ color: oklch(52.7% 0.150 314.4);
Tailwind
colors: {
  custom: {
    50: '#ae80c1',
    500: '#8a4ba6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ba6;
$custom-light: #ae80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ba6",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 166
  },
  "hsl": {
    "h": 281.538,
    "s": 37.759,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5268,
    "c": 0.15028,
    "h": 314.4
  },
  "luminance": 0.13189
}

Semantic roles & 50–950 ramp

primary
#8A4BA6
secondary
#9DBE8F
accent
#CE5A7E
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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