#804AB8#804AB8

#804AB8 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.5% C 0.169 H 303.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#804AB8
RGBrgb(128, 74, 184)
HSLhsl(269, 44%, 51%)
HSVhsv(269, 60%, 72%)
CMYKcmyk(30.4%, 59.8%, 0%, 27.8%)
CIE-LABlab(42.68, 44.45, -49.74)
CIE-LCHlch(42.68, 66.71, 311.79°)
OKLaboklab(52.49% 0.094 -0.1407)
OKLCHoklch(52.49% 0.169 303.7)
XYZxyz(20.0007, 12.9475, 46.7835)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AB8 #82B84A
analogous
#4A4BB8 #804AB8 #B74AB8
triadic
#804AB8 #B8804A #4AB880
tetradic
#804AB8 #B84A4B #82B84A #4AB8B7
square
#804AB8 #B84A4B #82B84A #4AB8B7
split-complementary
#804AB8 #B8B74A #4BB84A
monochromatic
#432661 #62378D #804AB8 #9F76C9 #BEA2DA

Accessibility & contrast

On white

5.85
#804AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#804AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AB8
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AB8#FFFFFF#000000##FFFFFF
##804AB81.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1464BC
Deuteranopia (green-blind)
#2F65B5
Tritanopia (blue-blind)
#76607A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804ab8;
/* rgb */ color: rgb(128, 74, 184);
/* oklch */ color: oklch(52.5% 0.169 303.7);
Tailwind
colors: {
  custom: {
    50: '#a87fce',
    500: '#804ab8',
    950: '#000000',
  },
}
SCSS
$custom: #804ab8;
$custom-light: #a87fce;
$custom-dark: #000000;
JSON
{
  "hex": "#804ab8",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 184
  },
  "hsl": {
    "h": 269.455,
    "s": 43.651,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52488,
    "c": 0.16919,
    "h": 303.7
  },
  "luminance": 0.12947
}

Semantic roles & 50–950 ramp

primary
#804AB8
secondary
#AFC796
accent
#D35495
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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