#804EA9#804EA9

#804EA9 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.145 H 307.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#804EA9
RGBrgb(128, 78, 169)
HSLhsl(273, 37%, 48%)
HSVhsv(273, 54%, 66%)
CMYKcmyk(24.3%, 53.8%, 0%, 33.7%)
CIE-LABlab(42.62, 38.60, -41.01)
CIE-LCHlch(42.62, 56.32, 313.27°)
OKLaboklab(52.15% 0.0883 -0.1151)
OKLCHoklch(52.15% 0.145 307.5)
XYZxyz(18.7865, 12.9028, 39.0292)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA9 #77A94E
analogous
#524EA9 #804EA9 #A94EA4
triadic
#804EA9 #A9804E #4EA980
tetradic
#804EA9 #A9524E #77A94E #4EA4A9
square
#804EA9 #A9524E #77A94E #4EA4A9
split-complementary
#804EA9 #A4A94E #4EA952
monochromatic
#412755 #603B7F #804EA9 #9E75BF #BB9FD3

Accessibility & contrast

On white

5.86
#804EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#804EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EA9
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA9#FFFFFF#000000##FFFFFF
##804EA91.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3263AC
Deuteranopia (green-blind)
#4265A7
Tritanopia (blue-blind)
#7A5E74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804ea9;
/* rgb */ color: rgb(128, 78, 169);
/* oklch */ color: oklch(52.1% 0.145 307.5);
Tailwind
colors: {
  custom: {
    50: '#a781c3',
    500: '#804ea9',
    950: '#000000',
  },
}
SCSS
$custom: #804ea9;
$custom-light: #a781c3;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea9",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 169
  },
  "hsl": {
    "h": 272.967,
    "s": 36.842,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52148,
    "c": 0.14509,
    "h": 307.5
  },
  "luminance": 0.12903
}

Semantic roles & 50–950 ramp

primary
#804EA9
secondary
#A7BF93
accent
#CD5B8E
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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