#8A4BA7#8A4BA7

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

Color values

HEX#8A4BA7
RGBrgb(138, 75, 167)
HSLhsl(281, 38%, 47%)
HSVhsv(281, 55%, 65%)
CMYKcmyk(17.4%, 55.1%, 0%, 34.5%)
CIE-LABlab(43.10, 42.50, -38.98)
CIE-LCHlch(43.10, 57.67, 317.48°)
OKLaboklab(52.74% 0.1052 -0.1089)
OKLCHoklch(52.74% 0.151 314)
XYZxyz(19.9712, 13.2260, 38.0526)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BA7 #68A74B
analogous
#5C4BA7 #8A4BA7 #A74B96
triadic
#8A4BA7 #A78A4B #4BA78A
tetradic
#8A4BA7 #A75C4B #68A74B #4B96A7
square
#8A4BA7 #A75C4B #68A74B #4B96A7
split-complementary
#8A4BA7 #96A74B #4BA75C
monochromatic
#442553 #67387D #8A4BA7 #A670BF #C09BD2

Accessibility & contrast

On white

5.76
#8A4BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A4BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BA7
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BA7#FFFFFF#000000##FFFFFF
##8A4BA71.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#4967A5
Tritanopia (blue-blind)
#885A72
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4ba7;
/* rgb */ color: rgb(138, 75, 167);
/* oklch */ color: oklch(52.7% 0.151 314.0);
Tailwind
colors: {
  custom: {
    50: '#ae80c1',
    500: '#8a4ba7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ba7;
$custom-light: #ae80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ba7",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 167
  },
  "hsl": {
    "h": 281.087,
    "s": 38.017,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52739,
    "c": 0.1514,
    "h": 314
  },
  "luminance": 0.13225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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