#804CA9#804CA9

#804CA9 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.8% C 0.148 H 307.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#804CA9
RGBrgb(128, 76, 169)
HSLhsl(274, 38%, 48%)
HSVhsv(274, 55%, 66%)
CMYKcmyk(24.3%, 55%, 0%, 33.7%)
CIE-LABlab(42.19, 39.71, -41.69)
CIE-LCHlch(42.19, 57.58, 313.61°)
OKLaboklab(51.83% 0.091 -0.1171)
OKLCHoklch(51.83% 0.148 307.9)
XYZxyz(18.6465, 12.6229, 38.9826)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA9 #75A94C
analogous
#514CA9 #804CA9 #A94CA3
triadic
#804CA9 #A9804C #4CA980
tetradic
#804CA9 #A9514C #75A94C #4CA3A9
square
#804CA9 #A9514C #75A94C #4CA3A9
split-complementary
#804CA9 #A3A94C #4CA951
monochromatic
#402655 #60397F #804CA9 #9E72C0 #BB9DD3

Accessibility & contrast

On white

5.96
#804CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#804CA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA9#FFFFFF#000000##FFFFFF
##804CA91.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E62AC
Deuteranopia (green-blind)
#4064A7
Tritanopia (blue-blind)
#7A5D73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ca9;
/* rgb */ color: rgb(128, 76, 169);
/* oklch */ color: oklch(51.8% 0.148 307.9);
Tailwind
colors: {
  custom: {
    50: '#a780c3',
    500: '#804ca9',
    950: '#000000',
  },
}
SCSS
$custom: #804ca9;
$custom-light: #a780c3;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca9",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 169
  },
  "hsl": {
    "h": 273.548,
    "s": 37.959,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51833,
    "c": 0.14833,
    "h": 307.9
  },
  "luminance": 0.12623
}

Semantic roles & 50–950 ramp

primary
#804CA9
secondary
#A6BF91
accent
#CE5A8D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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