#804AA4#804AA4

#804AA4 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.2% C 0.146 H 309.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#804AA4
RGBrgb(128, 74, 164)
HSLhsl(276, 38%, 47%)
HSVhsv(276, 55%, 64%)
CMYKcmyk(22%, 54.9%, 0%, 35.7%)
CIE-LABlab(41.48, 39.64, -39.84)
CIE-LCHlch(41.48, 56.20, 314.85°)
OKLaboklab(51.22% 0.0935 -0.1117)
OKLCHoklch(51.22% 0.146 309.9)
XYZxyz(18.0504, 12.1674, 36.5124)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AA4 #6EA44A
analogous
#534AA4 #804AA4 #A44A9B
triadic
#804AA4 #A4804A #4AA480
tetradic
#804AA4 #A4534A #6EA44A #4A9BA4
square
#804AA4 #A4534A #6EA44A #4A9BA4
split-complementary
#804AA4 #9BA44A #4AA453
monochromatic
#3E2450 #5F377A #804AA4 #9E6EBD #BA98D0

Accessibility & contrast

On white

6.12
#804AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#804AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AA4
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AA4#FFFFFF#000000##FFFFFF
##804AA41.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5FA7
Deuteranopia (green-blind)
#4163A2
Tritanopia (blue-blind)
#7B5A70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804aa4;
/* rgb */ color: rgb(128, 74, 164);
/* oklch */ color: oklch(51.2% 0.146 309.9);
Tailwind
colors: {
  custom: {
    50: '#a77fbf',
    500: '#804aa4',
    950: '#000000',
  },
}
SCSS
$custom: #804aa4;
$custom-light: #a77fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#804aa4",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 276,
    "s": 37.815,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51219,
    "c": 0.14567,
    "h": 309.9
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

primary
#804AA4
secondary
#A0BD8D
accent
#CE5A88
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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