#804CA1#804CA1

#804CA1 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.4% C 0.139 H 310.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#804CA1
RGBrgb(128, 76, 161)
HSLhsl(277, 36%, 46%)
HSVhsv(277, 53%, 63%)
CMYKcmyk(20.5%, 52.8%, 0%, 36.9%)
CIE-LABlab(41.74, 37.83, -37.65)
CIE-LCHlch(41.74, 53.37, 315.14°)
OKLaboklab(51.35% 0.0904 -0.1053)
OKLCHoklch(51.35% 0.139 310.7)
XYZxyz(17.9184, 12.3316, 35.1476)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA1 #6DA14C
analogous
#564CA1 #804CA1 #A14C98
triadic
#804CA1 #A1804C #4CA180
tetradic
#804CA1 #A1564C #6DA14C #4C98A1
square
#804CA1 #A1564C #6DA14C #4C98A1
split-complementary
#804CA1 #98A14C #4CA156
monochromatic
#3E254E #5F3877 #804CA1 #9E6FBB #BA99CF

Accessibility & contrast

On white

6.06
#804CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#804CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA1
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA1#FFFFFF#000000##FFFFFF
##804CA11.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3560A4
Deuteranopia (green-blind)
#45639F
Tritanopia (blue-blind)
#7C5A6F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804ca1;
/* rgb */ color: rgb(128, 76, 161);
/* oklch */ color: oklch(51.4% 0.139 310.7);
Tailwind
colors: {
  custom: {
    50: '#a780bd',
    500: '#804ca1',
    950: '#000000',
  },
}
SCSS
$custom: #804ca1;
$custom-light: #a780bd;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca1",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 161
  },
  "hsl": {
    "h": 276.706,
    "s": 35.865,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51354,
    "c": 0.13882,
    "h": 310.7
  },
  "luminance": 0.12331
}

Semantic roles & 50–950 ramp

primary
#804CA1
secondary
#9FBB8E
accent
#CC5C87
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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