#804AA2#804AA2

#804AA2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.1% C 0.143 H 310.6°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#804AA2
RGBrgb(128, 74, 162)
HSLhsl(277, 37%, 46%)
HSVhsv(277, 54%, 64%)
CMYKcmyk(21%, 54.3%, 0%, 36.5%)
CIE-LABlab(41.37, 39.17, -38.83)
CIE-LCHlch(41.37, 55.16, 315.25°)
OKLaboklab(51.1% 0.0933 -0.1088)
OKLCHoklch(51.1% 0.143 310.6)
XYZxyz(17.8712, 12.0957, 35.5687)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AA2 #6CA24A
analogous
#544AA2 #804AA2 #A24A98
triadic
#804AA2 #A2804A #4AA280
tetradic
#804AA2 #A2544A #6CA24A #4A98A2
square
#804AA2 #A2544A #6CA24A #4A98A2
split-complementary
#804AA2 #98A24A #4AA254
monochromatic
#3E244E #5F3778 #804AA2 #9E6DBC #BA97CF

Accessibility & contrast

On white

6.14
#804AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#804AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AA2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AA2#FFFFFF#000000##FFFFFF
##804AA21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#4363A0
Tritanopia (blue-blind)
#7C596F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804aa2;
/* rgb */ color: rgb(128, 74, 162);
/* oklch */ color: oklch(51.1% 0.143 310.6);
Tailwind
colors: {
  custom: {
    50: '#a77fbe',
    500: '#804aa2',
    950: '#000000',
  },
}
SCSS
$custom: #804aa2;
$custom-light: #a77fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#804aa2",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 276.818,
    "s": 37.288,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51099,
    "c": 0.14332,
    "h": 310.6
  },
  "luminance": 0.12095
}

Semantic roles & 50–950 ramp

primary
#804AA2
secondary
#9EBC8C
accent
#CD5B87
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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