#8A5F97#8A5F97

#8A5F97 is a mid, moderate purple. Relative luminance 0.158; OKLCH L 55.2% C 0.098 H 318.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A5F97
RGBrgb(138, 95, 151)
HSLhsl(286, 23%, 48%)
HSVhsv(286, 37%, 59%)
CMYKcmyk(8.6%, 37.1%, 0%, 40.8%)
CIE-LABlab(46.74, 27.74, -23.77)
CIE-LCHlch(46.74, 36.54, 319.41°)
OKLaboklab(55.2% 0.0728 -0.0652)
OKLCHoklch(55.2% 0.098 318.2)
XYZxyz(20.1586, 15.8226, 31.2643)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5F97 #6C975F
analogous
#6E5F97 #8A5F97 #975F88
triadic
#8A5F97 #978A5F #5F978A
tetradic
#8A5F97 #976E5F #6C975F #5F8897
square
#8A5F97 #976E5F #6C975F #5F8897
split-complementary
#8A5F97 #88975F #5F976E
monochromatic
#45304C #684771 #8A5F97 #A683B1 #C1A8C8

Accessibility & contrast

On white

5.04
#8A5F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A5F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5F97
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5F97#FFFFFF#000000##FFFFFF
##8A5F971.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#576C99
Deuteranopia (green-blind)
#627095
Tritanopia (blue-blind)
#8A6674
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5f97;
/* rgb */ color: rgb(138, 95, 151);
/* oklch */ color: oklch(55.2% 0.098 318.2);
Tailwind
colors: {
  custom: {
    50: '#ad8db5',
    500: '#8a5f97',
    950: '#000000',
  },
}
SCSS
$custom: #8a5f97;
$custom-light: #ad8db5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5f97",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 286.071,
    "s": 22.764,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55199,
    "c": 0.09771,
    "h": 318.2
  },
  "luminance": 0.15822
}

Semantic roles & 50–950 ramp

primary
#8A5F97
secondary
#A2B79B
accent
#BF697D
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5F97

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

Preview Lab → · Contrast checker → · Palette generator →

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