#8D5FAC#8D5FAC

#8D5FAC is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.6% C 0.125 H 310.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8D5FAC
RGBrgb(141, 95, 172)
HSLhsl(276, 32%, 52%)
HSVhsv(276, 45%, 67%)
CMYKcmyk(18%, 44.8%, 0%, 32.5%)
CIE-LABlab(48.04, 33.37, -34.11)
CIE-LCHlch(48.04, 47.71, 314.37°)
OKLaboklab(56.57% 0.0809 -0.0948)
OKLCHoklch(56.57% 0.125 310.5)
XYZxyz(22.5218, 16.8261, 41.0830)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5FAC #7EAC5F
analogous
#675FAC #8D5FAC #AC5FA5
triadic
#8D5FAC #AC8D5F #5FAC8D
tetradic
#8D5FAC #AC675F #7EAC5F #5FA5AC
square
#8D5FAC #AC675F #7EAC5F #5FA5AC
split-complementary
#8D5FAC #A5AC5F #5FAC67
monochromatic
#4D315F #6D4688 #8D5FAC #AA87C1 #C6B0D6

Accessibility & contrast

On white

4.81
#8D5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8D5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5FAC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5FAC#FFFFFF#000000##FFFFFF
##8D5FAC1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E70AF
Deuteranopia (green-blind)
#5A73AA
Tritanopia (blue-blind)
#896B7D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8d5fac;
/* rgb */ color: rgb(141, 95, 172);
/* oklch */ color: oklch(56.6% 0.125 310.5);
Tailwind
colors: {
  custom: {
    50: '#b08dc5',
    500: '#8d5fac',
    950: '#000000',
  },
}
SCSS
$custom: #8d5fac;
$custom-light: #b08dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5fac",
  "rgb": {
    "r": 141,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 275.844,
    "s": 31.687,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56569,
    "c": 0.12463,
    "h": 310.5
  },
  "luminance": 0.16826
}

Semantic roles & 50–950 ramp

primary
#8D5FAC
secondary
#B0C4A3
accent
#C8608A
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110C13
muted
#807D82

Preview Lab

Preview with #8D5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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