#804AB9#804AB9

#804AB9 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.170 H 303.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#804AB9
RGBrgb(128, 74, 185)
HSLhsl(269, 44%, 51%)
HSVhsv(269, 60%, 73%)
CMYKcmyk(30.8%, 60%, 0%, 27.5%)
CIE-LABlab(42.75, 44.70, -50.22)
CIE-LCHlch(42.75, 67.23, 311.67°)
OKLaboklab(52.55% 0.094 -0.1421)
OKLCHoklch(52.55% 0.17 303.5)
XYZxyz(20.1058, 12.9896, 47.3375)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AB9 #83B94A
analogous
#4A4BB9 #804AB9 #B74AB9
triadic
#804AB9 #B9804A #4AB980
tetradic
#804AB9 #B94A4B #83B94A #4AB9B7
square
#804AB9 #B94A4B #83B94A #4AB9B7
split-complementary
#804AB9 #B9B74A #4BB94A
monochromatic
#432663 #62378F #804AB9 #9F76CA #BEA2DB

Accessibility & contrast

On white

5.84
#804AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#804AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AB9
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AB9#FFFFFF#000000##FFFFFF
##804AB91.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1164BD
Deuteranopia (green-blind)
#2E65B6
Tritanopia (blue-blind)
#75617A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804ab9;
/* rgb */ color: rgb(128, 74, 185);
/* oklch */ color: oklch(52.6% 0.170 303.5);
Tailwind
colors: {
  custom: {
    50: '#a87fcf',
    500: '#804ab9',
    950: '#000000',
  },
}
SCSS
$custom: #804ab9;
$custom-light: #a87fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#804ab9",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 185
  },
  "hsl": {
    "h": 269.189,
    "s": 44.223,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52555,
    "c": 0.17036,
    "h": 303.5
  },
  "luminance": 0.1299
}

Semantic roles & 50–950 ramp

primary
#804AB9
secondary
#B0C897
accent
#D45496
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804AB9

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

Preview Lab → · Contrast checker → · Palette generator →

#804AB9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva