#8D5FA3#8D5FA3

#8D5FA3 is a mid, moderate purple. Relative luminance 0.165; OKLCH L 56.1% C 0.114 H 314.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8D5FA3
RGBrgb(141, 95, 163)
HSLhsl(281, 27%, 51%)
HSVhsv(281, 42%, 64%)
CMYKcmyk(13.5%, 41.7%, 0%, 36.1%)
CIE-LABlab(47.61, 31.33, -29.49)
CIE-LCHlch(47.61, 43.03, 316.74°)
OKLaboklab(56.11% 0.0792 -0.0815)
OKLCHoklch(56.11% 0.114 314.2)
XYZxyz(21.6865, 16.4920, 36.6841)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5FA3 #75A35F
analogous
#6B5FA3 #8D5FA3 #A35F97
triadic
#8D5FA3 #A38D5F #5FA38D
tetradic
#8D5FA3 #A36B5F #75A35F #5F97A3
square
#8D5FA3 #A36B5F #75A35F #5F97A3
split-complementary
#8D5FA3 #97A35F #5FA36B
monochromatic
#4A3256 #6C487D #8D5FA3 #A986B9 #C4ADD0

Accessibility & contrast

On white

4.89
#8D5FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8D5FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5FA3
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5FA3#FFFFFF#000000##FFFFFF
##8D5FA31.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536EA5
Deuteranopia (green-blind)
#5E72A1
Tritanopia (blue-blind)
#8B6879
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8d5fa3;
/* rgb */ color: rgb(141, 95, 163);
/* oklch */ color: oklch(56.1% 0.114 314.2);
Tailwind
colors: {
  custom: {
    50: '#af8dbe',
    500: '#8d5fa3',
    950: '#000000',
  },
}
SCSS
$custom: #8d5fa3;
$custom-light: #af8dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5fa3",
  "rgb": {
    "r": 141,
    "g": 95,
    "b": 163
  },
  "hsl": {
    "h": 280.588,
    "s": 26.984,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56109,
    "c": 0.11365,
    "h": 314.2
  },
  "luminance": 0.16491
}

Semantic roles & 50–950 ramp

primary
#8D5FA3
secondary
#AABEA0
accent
#C36483
background
#FAF8FB
surface
#F5F0F7
border
#CFCBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8D5FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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