#8D5FA2#8D5FA2

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

Color values

HEX#8D5FA2
RGBrgb(141, 95, 162)
HSLhsl(281, 26%, 50%)
HSVhsv(281, 41%, 64%)
CMYKcmyk(13%, 41.4%, 0%, 36.5%)
CIE-LABlab(47.57, 31.11, -28.97)
CIE-LCHlch(47.57, 42.51, 317.04°)
OKLaboklab(56.06% 0.079 -0.08)
OKLCHoklch(56.06% 0.112 314.7)
XYZxyz(21.5973, 16.4563, 36.2141)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5FA2 #74A25F
analogous
#6B5FA2 #8D5FA2 #A25F95
triadic
#8D5FA2 #A28D5F #5FA28D
tetradic
#8D5FA2 #A26B5F #74A25F #5F95A2
square
#8D5FA2 #A26B5F #74A25F #5F95A2
split-complementary
#8D5FA2 #95A25F #5FA26B
monochromatic
#4A3155 #6C487C #8D5FA2 #A986B8 #C4ACCF

Accessibility & contrast

On white

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

On black

4.29
#8D5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8D5FA2#FFFFFF#000000##FFFFFF
##8D5FA21.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536EA4
Deuteranopia (green-blind)
#5F72A0
Tritanopia (blue-blind)
#8C6879
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8d5fa2;
/* rgb */ color: rgb(141, 95, 162);
/* oklch */ color: oklch(56.1% 0.112 314.7);
Tailwind
colors: {
  custom: {
    50: '#af8dbe',
    500: '#8d5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8d5fa2;
$custom-light: #af8dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5fa2",
  "rgb": {
    "r": 141,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 281.194,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56059,
    "c": 0.11244,
    "h": 314.7
  },
  "luminance": 0.16456
}

Semantic roles & 50–950 ramp

primary
#8D5FA2
secondary
#A9BD9F
accent
#C36582
background
#FAF8FB
surface
#F5F0F6
border
#CFCBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8D5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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