#8A5E97#8A5E97

#8A5E97 is a mid, moderate purple. Relative luminance 0.156; OKLCH L 55.0% C 0.100 H 318.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A5E97
RGBrgb(138, 94, 151)
HSLhsl(286, 23%, 48%)
HSVhsv(286, 38%, 59%)
CMYKcmyk(8.6%, 37.7%, 0%, 40.8%)
CIE-LABlab(46.50, 28.33, -24.14)
CIE-LCHlch(46.50, 37.22, 319.56°)
OKLaboklab(55.02% 0.0744 -0.0662)
OKLCHoklch(55.02% 0.1 318.3)
XYZxyz(20.0691, 15.6436, 31.2345)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5E97 #6B975E
analogous
#6D5E97 #8A5E97 #975E87
triadic
#8A5E97 #978A5E #5E978A
tetradic
#8A5E97 #976D5E #6B975E #5E8797
square
#8A5E97 #976D5E #6B975E #5E8797
split-complementary
#8A5E97 #87975E #5E976D
monochromatic
#452F4C #684771 #8A5E97 #A681B1 #C1A7C8

Accessibility & contrast

On white

5.09
#8A5E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A5E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5E97
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5E97#FFFFFF#000000##FFFFFF
##8A5E971.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566B99
Deuteranopia (green-blind)
#617095
Tritanopia (blue-blind)
#8A6573
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a5e97;
/* rgb */ color: rgb(138, 94, 151);
/* oklch */ color: oklch(55.0% 0.100 318.3);
Tailwind
colors: {
  custom: {
    50: '#ad8cb5',
    500: '#8a5e97',
    950: '#000000',
  },
}
SCSS
$custom: #8a5e97;
$custom-light: #ad8cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5e97",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 151
  },
  "hsl": {
    "h": 286.316,
    "s": 23.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.55019,
    "c": 0.09957,
    "h": 318.3
  },
  "luminance": 0.15643
}

Semantic roles & 50–950 ramp

primary
#8A5E97
secondary
#A1B79A
accent
#C0687C
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5E97

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

Preview Lab → · Contrast checker → · Palette generator →

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