#8A5299#8A5299

#8A5299 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.1% C 0.124 H 318.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8A5299
RGBrgb(138, 82, 153)
HSLhsl(287, 30%, 46%)
HSVhsv(287, 46%, 60%)
CMYKcmyk(9.8%, 46.4%, 0%, 40%)
CIE-LABlab(43.86, 35.62, -29.45)
CIE-LCHlch(43.86, 46.22, 320.42°)
OKLaboklab(53.06% 0.0933 -0.0813)
OKLCHoklch(53.06% 0.124 318.9)
XYZxyz(19.2475, 13.7384, 31.7687)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5299 #619952
analogous
#665299 #8A5299 #995284
triadic
#8A5299 #998A52 #52998A
tetradic
#8A5299 #996652 #619952 #528499
square
#8A5299 #996652 #619952 #528499
split-complementary
#8A5299 #849952 #529966
monochromatic
#422749 #663D71 #8A5299 #A774B4 #C09CCA

Accessibility & contrast

On white

5.60
#8A5299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8A5299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5299
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5299#FFFFFF#000000##FFFFFF
##8A52991.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47649B
Deuteranopia (green-blind)
#566A97
Tritanopia (blue-blind)
#8A5B6E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a5299;
/* rgb */ color: rgb(138, 82, 153);
/* oklch */ color: oklch(53.1% 0.124 318.9);
Tailwind
colors: {
  custom: {
    50: '#ae84b7',
    500: '#8a5299',
    950: '#000000',
  },
}
SCSS
$custom: #8a5299;
$custom-light: #ae84b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5299",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 287.324,
    "s": 30.213,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53062,
    "c": 0.12378,
    "h": 318.9
  },
  "luminance": 0.13738
}

Semantic roles & 50–950 ramp

primary
#8A5299
secondary
#98B790
accent
#C66177
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A5299

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

Preview Lab → · Contrast checker → · Palette generator →

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