#8A4FB1#8A4FB1

#8A4FB1 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.9% C 0.156 H 310.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A4FB1
RGBrgb(138, 79, 177)
HSLhsl(276, 39%, 50%)
HSVhsv(276, 55%, 69%)
CMYKcmyk(22%, 55.4%, 0%, 30.6%)
CIE-LABlab(44.48, 42.61, -42.70)
CIE-LCHlch(44.48, 60.32, 314.94°)
OKLaboklab(53.93% 0.1004 -0.1198)
OKLCHoklch(53.93% 0.156 310)
XYZxyz(21.2115, 14.1699, 43.2041)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FB1 #76B14F
analogous
#594FB1 #8A4FB1 #B14FA7
triadic
#8A4FB1 #B18A4F #4FB18A
tetradic
#8A4FB1 #B1594F #76B14F #4FA7B1
square
#8A4FB1 #B1594F #76B14F #4FA7B1
split-complementary
#8A4FB1 #A7B14F #4FB159
monochromatic
#48295D #693C87 #8A4FB1 #A679C4 #C2A4D7

Accessibility & contrast

On white

5.48
#8A4FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A4FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FB1
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FB1#FFFFFF#000000##FFFFFF
##8A4FB11.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3166B4
Deuteranopia (green-blind)
#466AAF
Tritanopia (blue-blind)
#856078
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4fb1;
/* rgb */ color: rgb(138, 79, 177);
/* oklch */ color: oklch(53.9% 0.156 310.0);
Tailwind
colors: {
  custom: {
    50: '#af83c9',
    500: '#8a4fb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fb1;
$custom-light: #af83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fb1",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 276.122,
    "s": 38.583,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5393,
    "c": 0.15627,
    "h": 310
  },
  "luminance": 0.1417
}

Semantic roles & 50–950 ramp

primary
#8A4FB1
secondary
#A9C498
accent
#CF5988
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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