#8A4CB9#8A4CB9

#8A4CB9 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.0% C 0.170 H 307.9°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8A4CB9
RGBrgb(138, 76, 185)
HSLhsl(274, 44%, 51%)
HSVhsv(274, 59%, 73%)
CMYKcmyk(25.4%, 58.9%, 0%, 27.5%)
CIE-LABlab(44.34, 46.07, -47.60)
CIE-LCHlch(44.34, 66.25, 314.06°)
OKLaboklab(53.98% 0.1046 -0.1341)
OKLCHoklch(53.98% 0.17 307.9)
XYZxyz(21.8209, 14.0752, 47.4568)
Luminance0.1407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CB9 #7BB94C
analogous
#534CB9 #8A4CB9 #B94CB1
triadic
#8A4CB9 #B98A4C #4CB98A
tetradic
#8A4CB9 #B9534C #7BB94C #4CB1B9
square
#8A4CB9 #B9534C #7BB94C #4CB1B9
split-complementary
#8A4CB9 #B1B94C #4CB953
monochromatic
#492764 #6A3890 #8A4CB9 #A778CA #C4A4DB

Accessibility & contrast

On white

5.50
#8A4CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8A4CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CB9
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CB9#FFFFFF#000000##FFFFFF
##8A4CB91.005.503.815.50
#FFFFFF5.501.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2166BD
Deuteranopia (green-blind)
#3C6AB6
Tritanopia (blue-blind)
#83617B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4cb9;
/* rgb */ color: rgb(138, 76, 185);
/* oklch */ color: oklch(54.0% 0.170 307.9);
Tailwind
colors: {
  custom: {
    50: '#af81cf',
    500: '#8a4cb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cb9;
$custom-light: #af81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cb9",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 185
  },
  "hsl": {
    "h": 274.128,
    "s": 43.775,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53982,
    "c": 0.17006,
    "h": 307.9
  },
  "luminance": 0.14075
}

Semantic roles & 50–950 ramp

primary
#8A4CB9
secondary
#ADC898
accent
#D4548B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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