#804CA5#804CA5

#804CA5 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.6% C 0.144 H 309.2°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#804CA5
RGBrgb(128, 76, 165)
HSLhsl(275, 37%, 47%)
HSVhsv(275, 54%, 65%)
CMYKcmyk(22.4%, 53.9%, 0%, 35.3%)
CIE-LABlab(41.96, 38.76, -39.68)
CIE-LCHlch(41.96, 55.47, 314.33°)
OKLaboklab(51.59% 0.0908 -0.1112)
OKLCHoklch(51.59% 0.144 309.2)
XYZxyz(18.2768, 12.4750, 37.0351)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA5 #71A54C
analogous
#544CA5 #804CA5 #A54C9E
triadic
#804CA5 #A5804C #4CA580
tetradic
#804CA5 #A5544C #71A54C #4C9EA5
square
#804CA5 #A5544C #71A54C #4C9EA5
split-complementary
#804CA5 #9EA54C #4CA554
monochromatic
#3F2551 #5F397B #804CA5 #9E71BD #BA9BD1

Accessibility & contrast

On white

6.01
#804CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#804CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA5
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA5#FFFFFF#000000##FFFFFF
##804CA51.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3261A8
Deuteranopia (green-blind)
#4364A3
Tritanopia (blue-blind)
#7B5C71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ca5;
/* rgb */ color: rgb(128, 76, 165);
/* oklch */ color: oklch(51.6% 0.144 309.2);
Tailwind
colors: {
  custom: {
    50: '#a780c0',
    500: '#804ca5',
    950: '#000000',
  },
}
SCSS
$custom: #804ca5;
$custom-light: #a780c0;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca5",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 275.056,
    "s": 36.929,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51591,
    "c": 0.14357,
    "h": 309.2
  },
  "luminance": 0.12475
}

Semantic roles & 50–950 ramp

primary
#804CA5
secondary
#A3BD8F
accent
#CD5B8A
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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