#804FA1#804FA1

#804FA1 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 51.8% C 0.134 H 310.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#804FA1
RGBrgb(128, 79, 161)
HSLhsl(276, 34%, 47%)
HSVhsv(276, 51%, 63%)
CMYKcmyk(20.5%, 50.9%, 0%, 36.9%)
CIE-LABlab(42.39, 36.13, -36.61)
CIE-LCHlch(42.39, 51.44, 314.62°)
OKLaboklab(51.84% 0.0862 -0.1023)
OKLCHoklch(51.84% 0.134 310.1)
XYZxyz(18.1299, 12.7547, 35.2181)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FA1 #70A14F
analogous
#574FA1 #804FA1 #A14F99
triadic
#804FA1 #A1804F #4FA180
tetradic
#804FA1 #A1574F #70A14F #4F99A1
square
#804FA1 #A1574F #70A14F #4F99A1
split-complementary
#804FA1 #99A14F #4FA157
monochromatic
#3F274F #5F3B78 #804FA1 #9E73BA #BA9CCE

Accessibility & contrast

On white

5.91
#804FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#804FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FA1
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FA1#FFFFFF#000000##FFFFFF
##804FA11.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A4
Deuteranopia (green-blind)
#48659F
Tritanopia (blue-blind)
#7C5D70
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804fa1;
/* rgb */ color: rgb(128, 79, 161);
/* oklch */ color: oklch(51.8% 0.134 310.1);
Tailwind
colors: {
  custom: {
    50: '#a782bd',
    500: '#804fa1',
    950: '#000000',
  },
}
SCSS
$custom: #804fa1;
$custom-light: #a782bd;
$custom-dark: #000000;
JSON
{
  "hex": "#804fa1",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 275.854,
    "s": 34.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51838,
    "c": 0.13376,
    "h": 310.1
  },
  "luminance": 0.12754
}

Semantic roles & 50–950 ramp

primary
#804FA1
secondary
#A2BB91
accent
#CA5E89
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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