#804EA1#804EA1

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

Color values

HEX#804EA1
RGBrgb(128, 78, 161)
HSLhsl(276, 35%, 47%)
HSVhsv(276, 52%, 63%)
CMYKcmyk(20.5%, 51.6%, 0%, 36.9%)
CIE-LABlab(42.17, 36.70, -36.96)
CIE-LCHlch(42.17, 52.09, 314.80°)
OKLaboklab(51.68% 0.0876 -0.1033)
OKLCHoklch(51.68% 0.135 310.3)
XYZxyz(18.0583, 12.6115, 35.1943)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA1 #6FA14E
analogous
#574EA1 #804EA1 #A14E99
triadic
#804EA1 #A1804E #4EA180
tetradic
#804EA1 #A1574E #6FA14E #4E99A1
square
#804EA1 #A1574E #6FA14E #4E99A1
split-complementary
#804EA1 #99A14E #4EA157
monochromatic
#3E264F #5F3A78 #804EA1 #9E72BB #BA9BCF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##804EA1#FFFFFF#000000##FFFFFF
##804EA11.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)
#3861A4
Deuteranopia (green-blind)
#47649F
Tritanopia (blue-blind)
#7C5C70
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ea1;
/* rgb */ color: rgb(128, 78, 161);
/* oklch */ color: oklch(51.7% 0.135 310.3);
Tailwind
colors: {
  custom: {
    50: '#a781bd',
    500: '#804ea1',
    950: '#000000',
  },
}
SCSS
$custom: #804ea1;
$custom-light: #a781bd;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea1",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 276.145,
    "s": 34.728,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51675,
    "c": 0.13546,
    "h": 310.3
  },
  "luminance": 0.12611
}

Semantic roles & 50–950 ramp

primary
#804EA1
secondary
#A1BB90
accent
#CB5D89
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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