#8A5F9B#8A5F9B

#8A5F9B is a mid, moderate purple. Relative luminance 0.160; OKLCH L 55.4% C 0.102 H 316.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A5F9B
RGBrgb(138, 95, 155)
HSLhsl(283, 24%, 49%)
HSVhsv(283, 39%, 61%)
CMYKcmyk(11%, 38.7%, 0%, 39.2%)
CIE-LABlab(46.91, 28.61, -25.87)
CIE-LCHlch(46.91, 38.58, 317.88°)
OKLaboklab(55.39% 0.0738 -0.0712)
OKLCHoklch(55.39% 0.103 316)
XYZxyz(20.4889, 15.9547, 33.0042)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5F9B #709B5F
analogous
#6C5F9B #8A5F9B #9B5F8E
triadic
#8A5F9B #9B8A5F #5F9B8A
tetradic
#8A5F9B #9B6C5F #709B5F #5F8E9B
square
#8A5F9B #9B6C5F #709B5F #5F8E9B
split-complementary
#8A5F9B #8E9B5F #5F9B6C
monochromatic
#46304F #684875 #8A5F9B #A684B3 #C1AACB

Accessibility & contrast

On white

5.01
#8A5F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A5F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5F9B
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5F9B#FFFFFF#000000##FFFFFF
##8A5F9B1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566D9D
Deuteranopia (green-blind)
#607199
Tritanopia (blue-blind)
#896776
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5f9b;
/* rgb */ color: rgb(138, 95, 155);
/* oklch */ color: oklch(55.4% 0.102 316.0);
Tailwind
colors: {
  custom: {
    50: '#ad8db8',
    500: '#8a5f9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a5f9b;
$custom-light: #ad8db8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5f9b",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 155
  },
  "hsl": {
    "h": 283,
    "s": 24,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55388,
    "c": 0.1025,
    "h": 316
  },
  "luminance": 0.15954
}

Semantic roles & 50–950 ramp

primary
#8A5F9B
secondary
#A5B99D
accent
#C06781
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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