#8A5397#8A5397

#8A5397 is a mid, moderate purple. Relative luminance 0.138; OKLCH L 53.1% C 0.120 H 319.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A5397
RGBrgb(138, 83, 151)
HSLhsl(289, 29%, 46%)
HSVhsv(289, 45%, 59%)
CMYKcmyk(8.6%, 45%, 0%, 40.8%)
CIE-LABlab(43.98, 34.63, -28.06)
CIE-LCHlch(43.98, 44.57, 320.99°)
OKLaboklab(53.12% 0.0914 -0.0774)
OKLCHoklch(53.12% 0.12 319.8)
XYZxyz(19.1597, 13.8248, 30.9314)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5397 #609753
analogous
#685397 #8A5397 #975382
triadic
#8A5397 #978A53 #53978A
tetradic
#8A5397 #976853 #609753 #538297
square
#8A5397 #976853 #609753 #538297
split-complementary
#8A5397 #829753 #539768
monochromatic
#422848 #663D70 #8A5397 #A774B3 #C09CC9

Accessibility & contrast

On white

5.58
#8A5397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A5397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5397
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5397#FFFFFF#000000##FFFFFF
##8A53971.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496499
Deuteranopia (green-blind)
#586A95
Tritanopia (blue-blind)
#8B5C6E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a5397;
/* rgb */ color: rgb(138, 83, 151);
/* oklch */ color: oklch(53.1% 0.120 319.8);
Tailwind
colors: {
  custom: {
    50: '#ad85b6',
    500: '#8a5397',
    950: '#000000',
  },
}
SCSS
$custom: #8a5397;
$custom-light: #ad85b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5397",
  "rgb": {
    "r": 138,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 288.529,
    "s": 29.06,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53124,
    "c": 0.11975,
    "h": 319.8
  },
  "luminance": 0.13824
}

Semantic roles & 50–950 ramp

primary
#8A5397
secondary
#97B690
accent
#C56275
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A5397

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

Preview Lab → · Contrast checker → · Palette generator →

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