#804AA6#804AA6

#804AA6 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.3% C 0.148 H 309.2°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#804AA6
RGBrgb(128, 74, 166)
HSLhsl(275, 38%, 47%)
HSVhsv(275, 55%, 65%)
CMYKcmyk(22.9%, 55.4%, 0%, 34.9%)
CIE-LABlab(41.60, 40.11, -40.85)
CIE-LCHlch(41.60, 57.25, 314.47°)
OKLaboklab(51.34% 0.0936 -0.1147)
OKLCHoklch(51.34% 0.148 309.2)
XYZxyz(18.2325, 12.2402, 37.4711)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AA6 #70A64A
analogous
#524AA6 #804AA6 #A64A9E
triadic
#804AA6 #A6804A #4AA680
tetradic
#804AA6 #A6524A #70A64A #4A9EA6
square
#804AA6 #A6524A #70A64A #4A9EA6
split-complementary
#804AA6 #9EA64A #4AA652
monochromatic
#3F2451 #5F377C #804AA6 #9E6FBF #BA99D1

Accessibility & contrast

On white

6.09
#804AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#804AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AA6
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AA6#FFFFFF#000000##FFFFFF
##804AA61.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60A9
Deuteranopia (green-blind)
#4063A4
Tritanopia (blue-blind)
#7B5A71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804aa6;
/* rgb */ color: rgb(128, 74, 166);
/* oklch */ color: oklch(51.3% 0.148 309.2);
Tailwind
colors: {
  custom: {
    50: '#a77fc1',
    500: '#804aa6',
    950: '#000000',
  },
}
SCSS
$custom: #804aa6;
$custom-light: #a77fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#804aa6",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 166
  },
  "hsl": {
    "h": 275.217,
    "s": 38.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5134,
    "c": 0.14801,
    "h": 309.2
  },
  "luminance": 0.1224
}

Semantic roles & 50–950 ramp

primary
#804AA6
secondary
#A2BE8E
accent
#CE5A8A
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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