#8A4CB1#8A4CB1

#8A4CB1 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.161 H 310.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8A4CB1
RGBrgb(138, 76, 177)
HSLhsl(277, 40%, 50%)
HSVhsv(277, 57%, 69%)
CMYKcmyk(22%, 57.1%, 0%, 30.6%)
CIE-LABlab(43.87, 44.22, -43.67)
CIE-LCHlch(43.87, 62.15, 315.36°)
OKLaboklab(53.48% 0.1044 -0.1226)
OKLCHoklch(53.48% 0.161 310.4)
XYZxyz(21.0000, 13.7469, 43.1336)
Luminance0.1375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CB1 #73B14C
analogous
#584CB1 #8A4CB1 #B14CA6
triadic
#8A4CB1 #B18A4C #4CB18A
tetradic
#8A4CB1 #B1584C #73B14C #4CA6B1
square
#8A4CB1 #B1584C #73B14C #4CA6B1
split-complementary
#8A4CB1 #A6B14C #4CB158
monochromatic
#47275B #693A86 #8A4CB1 #A676C4 #C2A1D7

Accessibility & contrast

On white

5.60
#8A4CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8A4CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CB1
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CB1#FFFFFF#000000##FFFFFF
##8A4CB11.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#855E77
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4cb1;
/* rgb */ color: rgb(138, 76, 177);
/* oklch */ color: oklch(53.5% 0.161 310.4);
Tailwind
colors: {
  custom: {
    50: '#af81c9',
    500: '#8a4cb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cb1;
$custom-light: #af81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cb1",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 276.832,
    "s": 39.921,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53484,
    "c": 0.16102,
    "h": 310.4
  },
  "luminance": 0.13746
}

Semantic roles & 50–950 ramp

primary
#8A4CB1
secondary
#A7C395
accent
#D05886
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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