#8D5EA2#8D5EA2

#8D5EA2 is a mid, moderate purple. Relative luminance 0.163; OKLCH L 55.9% C 0.114 H 314.8°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8D5EA2
RGBrgb(141, 94, 162)
HSLhsl(281, 27%, 50%)
HSVhsv(281, 42%, 64%)
CMYKcmyk(13%, 42%, 0%, 36.5%)
CIE-LABlab(47.34, 31.69, -29.33)
CIE-LCHlch(47.34, 43.18, 317.21°)
OKLaboklab(55.89% 0.0806 -0.081)
OKLCHoklch(55.89% 0.114 314.8)
XYZxyz(21.5078, 16.2773, 36.1842)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EA2 #73A25E
analogous
#6B5EA2 #8D5EA2 #A25E95
triadic
#8D5EA2 #A28D5E #5EA28D
tetradic
#8D5EA2 #A26B5E #73A25E #5E95A2
square
#8D5EA2 #A26B5E #73A25E #5E95A2
split-complementary
#8D5EA2 #95A25E #5EA26B
monochromatic
#4A3155 #6B477B #8D5EA2 #A885B8 #C4ACCF

Accessibility & contrast

On white

4.93
#8D5EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8D5EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5EA2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EA2#FFFFFF#000000##FFFFFF
##8D5EA21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526DA4
Deuteranopia (green-blind)
#5E72A0
Tritanopia (blue-blind)
#8C6778
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8d5ea2;
/* rgb */ color: rgb(141, 94, 162);
/* oklch */ color: oklch(55.9% 0.114 314.8);
Tailwind
colors: {
  custom: {
    50: '#af8cbe',
    500: '#8d5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ea2;
$custom-light: #af8cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ea2",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 281.471,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55885,
    "c": 0.11425,
    "h": 314.8
  },
  "luminance": 0.16277
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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