#8A4E98#8A4E98

#8A4E98 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 52.4% C 0.130 H 319.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8A4E98
RGBrgb(138, 78, 152)
HSLhsl(289, 32%, 45%)
HSVhsv(289, 49%, 60%)
CMYKcmyk(9.2%, 48.7%, 0%, 40.4%)
CIE-LABlab(42.94, 37.63, -30.28)
CIE-LCHlch(42.94, 48.30, 321.18°)
OKLaboklab(52.37% 0.0991 -0.0837)
OKLCHoklch(52.37% 0.13 319.8)
XYZxyz(18.8724, 13.1198, 31.2379)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E98 #5C984E
analogous
#654E98 #8A4E98 #984E81
triadic
#8A4E98 #988A4E #4E988A
tetradic
#8A4E98 #98654E #5C984E #4E8198
square
#8A4E98 #98654E #5C984E #4E8198
split-complementary
#8A4E98 #81984E #4E9865
monochromatic
#412447 #653970 #8A4E98 #A76EB5 #C097CA

Accessibility & contrast

On white

5.80
#8A4E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A4E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E98
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E98#FFFFFF#000000##FFFFFF
##8A4E981.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42619B
Deuteranopia (green-blind)
#536896
Tritanopia (blue-blind)
#8B586C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4e98;
/* rgb */ color: rgb(138, 78, 152);
/* oklch */ color: oklch(52.4% 0.130 319.8);
Tailwind
colors: {
  custom: {
    50: '#ae82b6',
    500: '#8a4e98',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e98;
$custom-light: #ae82b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e98",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 288.649,
    "s": 32.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52367,
    "c": 0.12975,
    "h": 319.8
  },
  "luminance": 0.13119
}

Semantic roles & 50–950 ramp

primary
#8A4E98
secondary
#94B68C
accent
#C85F73
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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