#8A4DB9#8A4DB9

#8A4DB9 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.169 H 307.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A4DB9
RGBrgb(138, 77, 185)
HSLhsl(274, 44%, 51%)
HSVhsv(274, 58%, 73%)
CMYKcmyk(25.4%, 58.4%, 0%, 27.5%)
CIE-LABlab(44.54, 45.54, -47.29)
CIE-LCHlch(44.54, 65.65, 313.92°)
OKLaboklab(54.13% 0.1033 -0.1332)
OKLCHoklch(54.13% 0.169 307.8)
XYZxyz(21.8903, 14.2141, 47.4799)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DB9 #7CB94D
analogous
#544DB9 #8A4DB9 #B94DB2
triadic
#8A4DB9 #B98A4D #4DB98A
tetradic
#8A4DB9 #B9544D #7CB94D #4DB2B9
square
#8A4DB9 #B9544D #7CB94D #4DB2B9
split-complementary
#8A4DB9 #B2B94D #4DB954
monochromatic
#4A2764 #6A3990 #8A4DB9 #A779CA #C4A5DC

Accessibility & contrast

On white

5.46
#8A4DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8A4DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DB9
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DB9#FFFFFF#000000##FFFFFF
##8A4DB91.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2467BC
Deuteranopia (green-blind)
#3D6AB6
Tritanopia (blue-blind)
#83617C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4db9;
/* rgb */ color: rgb(138, 77, 185);
/* oklch */ color: oklch(54.1% 0.169 307.8);
Tailwind
colors: {
  custom: {
    50: '#af82ce',
    500: '#8a4db9',
    950: '#000000',
  },
}
SCSS
$custom: #8a4db9;
$custom-light: #af82ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4db9",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 185
  },
  "hsl": {
    "h": 273.889,
    "s": 43.548,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54127,
    "c": 0.16855,
    "h": 307.8
  },
  "luminance": 0.14214
}

Semantic roles & 50–950 ramp

primary
#8A4DB9
secondary
#AEC999
accent
#D3558C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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