#804AB7#804AB7

#804AB7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.4% C 0.168 H 304.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#804AB7
RGBrgb(128, 74, 183)
HSLhsl(270, 43%, 50%)
HSVhsv(270, 60%, 72%)
CMYKcmyk(30.1%, 59.6%, 0%, 28.2%)
CIE-LABlab(42.62, 44.20, -49.25)
CIE-LCHlch(42.62, 66.18, 311.91°)
OKLaboklab(52.42% 0.094 -0.1393)
OKLCHoklch(52.42% 0.168 304)
XYZxyz(19.8962, 12.9057, 46.2334)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AB7 #81B74A
analogous
#4A4AB7 #804AB7 #B74AB7
triadic
#804AB7 #B7804A #4AB780
tetradic
#804AB7 #B74A4A #81B74A #4AB7B7
square
#804AB7 #B74A4A #81B74A #4AB7B7
split-complementary
#804AB7 #B7B74A #4AB74A
monochromatic
#432660 #62388C #804AB7 #9F76C8 #BDA2DA

Accessibility & contrast

On white

5.86
#804AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#804AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AB7
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AB7#FFFFFF#000000##FFFFFF
##804AB71.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1663BB
Deuteranopia (green-blind)
#3165B4
Tritanopia (blue-blind)
#766079
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804ab7;
/* rgb */ color: rgb(128, 74, 183);
/* oklch */ color: oklch(52.4% 0.168 304.0);
Tailwind
colors: {
  custom: {
    50: '#a87fcd',
    500: '#804ab7',
    950: '#000000',
  },
}
SCSS
$custom: #804ab7;
$custom-light: #a87fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#804ab7",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 269.725,
    "s": 43.083,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52422,
    "c": 0.168,
    "h": 304
  },
  "luminance": 0.12906
}

Semantic roles & 50–950 ramp

primary
#804AB7
secondary
#AFC796
accent
#D35594
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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