#804ACC#804ACC

#804ACC is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.9% C 0.193 H 298.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#804ACC
RGBrgb(128, 74, 204)
HSLhsl(265, 56%, 55%)
HSVhsv(265, 64%, 80%)
CMYKcmyk(37.3%, 63.7%, 0%, 20%)
CIE-LABlab(44.01, 49.47, -59.23)
CIE-LCHlch(44.01, 77.17, 309.87°)
OKLaboklab(53.87% 0.093 -0.1686)
OKLCHoklch(53.87% 0.193 298.9)
XYZxyz(22.2472, 13.8461, 58.6155)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ACC #96CC4A
analogous
#4A55CC #804ACC #C14ACC
triadic
#804ACC #CC804A #4ACC80
tetradic
#804ACC #CC4A55 #96CC4A #4ACCC1
square
#804ACC #CC4A55 #96CC4A #4ACCC1
split-complementary
#804ACC #CCC14A #55CC4A
monochromatic
#462279 #6230A9 #804ACC #A27AD9 #C3A9E7

Accessibility & contrast

On white

5.57
#804ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#804ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ACC
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ACC#FFFFFF#000000##FFFFFF
##804ACC1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#0267C9
Tritanopia (blue-blind)
#6F6784
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804acc;
/* rgb */ color: rgb(128, 74, 204);
/* oklch */ color: oklch(53.9% 0.193 298.9);
Tailwind
colors: {
  custom: {
    50: '#aa7fdc',
    500: '#804acc',
    950: '#000000',
  },
}
SCSS
$custom: #804acc;
$custom-light: #aa7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#804acc",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 264.923,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53875,
    "c": 0.1925,
    "h": 298.9
  },
  "luminance": 0.13846
}

Semantic roles & 50–950 ramp

primary
#804ACC
secondary
#BED49D
accent
#DF48A1
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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