#8A4E95#8A4E95

#8A4E95 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 52.2% C 0.126 H 321.2°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A4E95
RGBrgb(138, 78, 149)
HSLhsl(291, 31%, 45%)
HSVhsv(291, 48%, 58%)
CMYKcmyk(7.4%, 47.7%, 0%, 41.6%)
CIE-LABlab(42.80, 37.01, -28.71)
CIE-LCHlch(42.80, 46.84, 322.19°)
OKLaboklab(52.21% 0.0986 -0.0792)
OKLCHoklch(52.21% 0.126 321.2)
XYZxyz(18.6298, 13.0227, 29.9602)
Luminance0.1302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E95 #59954E
analogous
#674E95 #8A4E95 #954E7D
triadic
#8A4E95 #958A4E #4E958A
tetradic
#8A4E95 #95674E #59954E #4E7D95
square
#8A4E95 #95674E #59954E #4E7D95
split-complementary
#8A4E95 #7D954E #4E9567
monochromatic
#402445 #65396D #8A4E95 #A86DB3 #C096C8

Accessibility & contrast

On white

5.83
#8A4E95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A4E95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E95
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E95#FFFFFF#000000##FFFFFF
##8A4E951.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446197
Deuteranopia (green-blind)
#556793
Tritanopia (blue-blind)
#8B576A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4e95;
/* rgb */ color: rgb(138, 78, 149);
/* oklch */ color: oklch(52.2% 0.126 321.2);
Tailwind
colors: {
  custom: {
    50: '#ae81b4',
    500: '#8a4e95',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e95;
$custom-light: #ae81b4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e95",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 290.704,
    "s": 31.278,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52211,
    "c": 0.12649,
    "h": 321.2
  },
  "luminance": 0.13022
}

Semantic roles & 50–950 ramp

primary
#8A4E95
secondary
#91B48A
accent
#C76070
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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