#804AAA#804AAA

#804AAA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.6% C 0.153 H 307.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#804AAA
RGBrgb(128, 74, 170)
HSLhsl(274, 39%, 48%)
HSVhsv(274, 56%, 67%)
CMYKcmyk(24.7%, 56.5%, 0%, 33.3%)
CIE-LABlab(41.83, 41.05, -42.86)
CIE-LCHlch(41.83, 59.35, 313.77°)
OKLaboklab(51.59% 0.0938 -0.1205)
OKLCHoklch(51.59% 0.153 307.9)
XYZxyz(18.6051, 12.3893, 39.4337)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AAA #74AA4A
analogous
#504AAA #804AAA #AA4AA4
triadic
#804AAA #AA804A #4AAA80
tetradic
#804AAA #AA504A #74AA4A #4AA4AA
square
#804AAA #AA504A #74AA4A #4AA4AA
split-complementary
#804AAA #A4AA4A #4AAA50
monochromatic
#402555 #60377F #804AAA #9E70C1 #BB9BD3

Accessibility & contrast

On white

6.04
#804AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#804AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AAA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AAA#FFFFFF#000000##FFFFFF
##804AAA1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AD
Deuteranopia (green-blind)
#3D63A8
Tritanopia (blue-blind)
#7A5C73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804aaa;
/* rgb */ color: rgb(128, 74, 170);
/* oklch */ color: oklch(51.6% 0.153 307.9);
Tailwind
colors: {
  custom: {
    50: '#a77fc4',
    500: '#804aaa',
    950: '#000000',
  },
}
SCSS
$custom: #804aaa;
$custom-light: #a77fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#804aaa",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 273.75,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51586,
    "c": 0.15272,
    "h": 307.9
  },
  "luminance": 0.12389
}

Semantic roles & 50–950 ramp

primary
#804AAA
secondary
#A5C090
accent
#CF598C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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