#804AB5#804AB5

#804AB5 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.3% C 0.166 H 304.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#804AB5
RGBrgb(128, 74, 181)
HSLhsl(270, 42%, 50%)
HSVhsv(270, 59%, 71%)
CMYKcmyk(29.3%, 59.1%, 0%, 29%)
CIE-LABlab(42.50, 43.71, -48.28)
CIE-LCHlch(42.50, 65.13, 312.16°)
OKLaboklab(52.29% 0.094 -0.1364)
OKLCHoklch(52.29% 0.166 304.6)
XYZxyz(19.6895, 12.8230, 45.1449)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AB5 #7FB54A
analogous
#4A4AB5 #804AB5 #B54AB5
triadic
#804AB5 #B5804A #4AB580
tetradic
#804AB5 #B54A4A #7FB54A #4AB5B5
square
#804AB5 #B54A4A #7FB54A #4AB5B5
split-complementary
#804AB5 #B5B54A #4AB54A
monochromatic
#43265E #61388A #804AB5 #9E75C7 #BDA1D9

Accessibility & contrast

On white

5.89
#804AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#804AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AB5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AB5#FFFFFF#000000##FFFFFF
##804AB51.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A63B8
Deuteranopia (green-blind)
#3364B3
Tritanopia (blue-blind)
#775F78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ab5;
/* rgb */ color: rgb(128, 74, 181);
/* oklch */ color: oklch(52.3% 0.166 304.6);
Tailwind
colors: {
  custom: {
    50: '#a87fcc',
    500: '#804ab5',
    950: '#000000',
  },
}
SCSS
$custom: #804ab5;
$custom-light: #a87fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#804ab5",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 270.28,
    "s": 41.961,
    "l": 50
  },
  "oklch": {
    "l": 0.5229,
    "c": 0.16566,
    "h": 304.6
  },
  "luminance": 0.12823
}

Semantic roles & 50–950 ramp

primary
#804AB5
secondary
#ADC595
accent
#D25693
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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