#8A4DBA#8A4DBA

#8A4DBA is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.170 H 307.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8A4DBA
RGBrgb(138, 77, 186)
HSLhsl(274, 44%, 52%)
HSVhsv(274, 59%, 73%)
CMYKcmyk(25.8%, 58.6%, 0%, 27.1%)
CIE-LABlab(44.60, 45.78, -47.77)
CIE-LCHlch(44.60, 66.17, 313.78°)
OKLaboklab(54.19% 0.1033 -0.1346)
OKLCHoklch(54.19% 0.17 307.5)
XYZxyz(21.9962, 14.2565, 48.0379)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DBA #7DBA4D
analogous
#544DBA #8A4DBA #BA4DB4
triadic
#8A4DBA #BA8A4D #4DBA8A
tetradic
#8A4DBA #BA544D #7DBA4D #4DB4BA
square
#8A4DBA #BA544D #7DBA4D #4DB4BA
split-complementary
#8A4DBA #B4BA4D #4DBA54
monochromatic
#4A2765 #6A3891 #8A4DBA #A779CB #C4A5DC

Accessibility & contrast

On white

5.45
#8A4DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A4DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DBA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DBA#FFFFFF#000000##FFFFFF
##8A4DBA1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2267BE
Deuteranopia (green-blind)
#3C6AB7
Tritanopia (blue-blind)
#83627C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4dba;
/* rgb */ color: rgb(138, 77, 186);
/* oklch */ color: oklch(54.2% 0.170 307.5);
Tailwind
colors: {
  custom: {
    50: '#af82cf',
    500: '#8a4dba',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dba;
$custom-light: #af82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dba",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 273.578,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5419,
    "c": 0.16969,
    "h": 307.5
  },
  "luminance": 0.14256
}

Semantic roles & 50–950 ramp

primary
#8A4DBA
secondary
#AFC999
accent
#D4548C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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