#8A5FA1#8A5FA1

#8A5FA1 is a mid, moderate violet. Relative luminance 0.162; OKLCH L 55.7% C 0.110 H 313.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A5FA1
RGBrgb(138, 95, 161)
HSLhsl(279, 26%, 50%)
HSVhsv(279, 41%, 63%)
CMYKcmyk(14.3%, 41%, 0%, 36.9%)
CIE-LABlab(47.19, 29.95, -29.00)
CIE-LCHlch(47.19, 41.69, 315.92°)
OKLaboklab(55.68% 0.0751 -0.0801)
OKLCHoklch(55.68% 0.11 313.1)
XYZxyz(21.0054, 16.1613, 35.7242)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FA1 #76A15F
analogous
#695FA1 #8A5FA1 #A15F97
triadic
#8A5FA1 #A18A5F #5FA18A
tetradic
#8A5FA1 #A1695F #76A15F #5F97A1
square
#8A5FA1 #A1695F #76A15F #5F97A1
split-complementary
#8A5FA1 #97A15F #5FA169
monochromatic
#483154 #69487B #8A5FA1 #A686B8 #C2ACCE

Accessibility & contrast

On white

4.96
#8A5FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8A5FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FA1
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FA1#FFFFFF#000000##FFFFFF
##8A5FA11.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536EA3
Deuteranopia (green-blind)
#5D719F
Tritanopia (blue-blind)
#886878
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5fa1;
/* rgb */ color: rgb(138, 95, 161);
/* oklch */ color: oklch(55.7% 0.110 313.1);
Tailwind
colors: {
  custom: {
    50: '#ad8dbd',
    500: '#8a5fa1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fa1;
$custom-light: #ad8dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fa1",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 279.091,
    "s": 25.984,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5568,
    "c": 0.10982,
    "h": 313.1
  },
  "luminance": 0.16161
}

Semantic roles & 50–950 ramp

primary
#8A5FA1
secondary
#A9BD9F
accent
#C26586
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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