#8E5F8B#8E5F8B

#8E5F8B is a mid, moderate purple. Relative luminance 0.158; OKLCH L 55.1% C 0.087 H 328.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8E5F8B
RGBrgb(142, 95, 139)
HSLhsl(304, 20%, 46%)
HSVhsv(304, 33%, 56%)
CMYKcmyk(0%, 33.1%, 2.1%, 44.3%)
CIE-LABlab(46.71, 26.63, -16.63)
CIE-LCHlch(46.71, 31.39, 328.02°)
OKLaboklab(55.12% 0.0745 -0.0449)
OKLCHoklch(55.12% 0.087 328.9)
XYZxyz(19.9074, 15.8001, 26.4222)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5F8B #5F8E62
analogous
#7A5F8E #8E5F8B #8E5F74
triadic
#8E5F8B #8B8E5F #5F8B8E
tetradic
#8E5F8B #8E7A5F #5F8E62 #5F748E
square
#8E5F8B #8E7A5F #5F8E62 #5F748E
split-complementary
#8E5F8B #748E5F #5F8E7A
monochromatic
#452E43 #694667 #8E5F8B #AA80A7 #C3A5C1

Accessibility & contrast

On white

5.05
#8E5F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E5F8B
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5F8B#FFFFFF#000000##FFFFFF
##8E5F8B1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6B8D
Deuteranopia (green-blind)
#687189
Tritanopia (blue-blind)
#91626F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8e5f8b;
/* rgb */ color: rgb(142, 95, 139);
/* oklch */ color: oklch(55.1% 0.087 328.9);
Tailwind
colors: {
  custom: {
    50: '#b08dad',
    500: '#8e5f8b',
    950: '#000000',
  },
}
SCSS
$custom: #8e5f8b;
$custom-light: #b08dad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5f8b",
  "rgb": {
    "r": 142,
    "g": 95,
    "b": 139
  },
  "hsl": {
    "h": 303.83,
    "s": 19.831,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55118,
    "c": 0.08696,
    "h": 328.9
  },
  "luminance": 0.15799
}

Semantic roles & 50–950 ramp

primary
#8E5F8B
secondary
#98B199
accent
#BC716B
background
#FAF8FA
surface
#F5F0F4
border
#CFCBCE
text
#100C10
muted
#7F7D7F

Preview Lab

Preview with #8E5F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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