#8A4DB7#8A4DB7

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

Color values

HEX#8A4DB7
RGBrgb(138, 77, 183)
HSLhsl(275, 42%, 51%)
HSVhsv(275, 58%, 72%)
CMYKcmyk(24.6%, 57.9%, 0%, 28.2%)
CIE-LABlab(44.42, 45.08, -46.31)
CIE-LCHlch(44.42, 64.62, 314.23°)
OKLaboklab(54% 0.1032 -0.1303)
OKLCHoklch(54% 0.166 308.4)
XYZxyz(21.6806, 14.1302, 46.3758)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DB7 #7AB74D
analogous
#554DB7 #8A4DB7 #B74DAF
triadic
#8A4DB7 #B78A4D #4DB78A
tetradic
#8A4DB7 #B7554D #7AB74D #4DAFB7
square
#8A4DB7 #B7554D #7AB74D #4DAFB7
split-complementary
#8A4DB7 #AFB74D #4DB755
monochromatic
#492862 #6A398E #8A4DB7 #A779C9 #C3A4DA

Accessibility & contrast

On white

5.49
#8A4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A4DB7
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DB7#FFFFFF#000000##FFFFFF
##8A4DB71.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2667BA
Deuteranopia (green-blind)
#3F6AB4
Tritanopia (blue-blind)
#83617B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4db7;
/* rgb */ color: rgb(138, 77, 183);
/* oklch */ color: oklch(54.0% 0.166 308.4);
Tailwind
colors: {
  custom: {
    50: '#af81cd',
    500: '#8a4db7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4db7;
$custom-light: #af81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4db7",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 274.528,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54001,
    "c": 0.16627,
    "h": 308.4
  },
  "luminance": 0.1413
}

Semantic roles & 50–950 ramp

primary
#8A4DB7
secondary
#ACC798
accent
#D2568A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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