#8A4BBA#8A4BBA

#8A4BBA is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.9% C 0.173 H 307.8°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A4BBA
RGBrgb(138, 75, 186)
HSLhsl(274, 45%, 51%)
HSVhsv(274, 60%, 73%)
CMYKcmyk(25.8%, 59.7%, 0%, 27.1%)
CIE-LABlab(44.21, 46.83, -48.40)
CIE-LCHlch(44.21, 67.35, 314.05°)
OKLaboklab(53.9% 0.1058 -0.1365)
OKLCHoklch(53.9% 0.173 307.8)
XYZxyz(21.8584, 13.9809, 47.9919)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BBA #7BBA4B
analogous
#524BBA #8A4BBA #BA4BB2
triadic
#8A4BBA #BA8A4B #4BBA8A
tetradic
#8A4BBA #BA524B #7BBA4B #4BB2BA
square
#8A4BBA #BA524B #7BBA4B #4BB2BA
split-complementary
#8A4BBA #B2BA4B #4BBA52
monochromatic
#492664 #6A3790 #8A4BBA #A777CB #C4A3DC

Accessibility & contrast

On white

5.53
#8A4BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A4BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BBA
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BBA#FFFFFF#000000##FFFFFF
##8A4BBA1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D66BE
Deuteranopia (green-blind)
#3A69B7
Tritanopia (blue-blind)
#83607B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4bba;
/* rgb */ color: rgb(138, 75, 186);
/* oklch */ color: oklch(53.9% 0.173 307.8);
Tailwind
colors: {
  custom: {
    50: '#af80cf',
    500: '#8a4bba',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bba;
$custom-light: #af80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bba",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 186
  },
  "hsl": {
    "h": 274.054,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53903,
    "c": 0.17269,
    "h": 307.8
  },
  "luminance": 0.13981
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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