#804EA0#804EA0

#804EA0 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.6% C 0.134 H 310.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#804EA0
RGBrgb(128, 78, 160)
HSLhsl(277, 34%, 47%)
HSVhsv(277, 51%, 63%)
CMYKcmyk(20%, 51.2%, 0%, 37.3%)
CIE-LABlab(42.12, 36.47, -36.45)
CIE-LCHlch(42.12, 51.56, 315.01°)
OKLaboklab(51.62% 0.0875 -0.1018)
OKLCHoklch(51.62% 0.134 310.7)
XYZxyz(17.9705, 12.5764, 34.7317)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA0 #6EA04E
analogous
#574EA0 #804EA0 #A04E97
triadic
#804EA0 #A0804E #4EA080
tetradic
#804EA0 #A0574E #6EA04E #4E97A0
square
#804EA0 #A0574E #6EA04E #4E97A0
split-complementary
#804EA0 #97A04E #4EA057
monochromatic
#3E264E #5F3A77 #804EA0 #9E71BA #BA9ACE

Accessibility & contrast

On white

5.97
#804EA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804EA0
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA0#FFFFFF#000000##FFFFFF
##804EA01.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3961A3
Deuteranopia (green-blind)
#48649E
Tritanopia (blue-blind)
#7C5C70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ea0;
/* rgb */ color: rgb(128, 78, 160);
/* oklch */ color: oklch(51.6% 0.134 310.7);
Tailwind
colors: {
  custom: {
    50: '#a781bc',
    500: '#804ea0',
    950: '#000000',
  },
}
SCSS
$custom: #804ea0;
$custom-light: #a781bc;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea0",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 160
  },
  "hsl": {
    "h": 276.585,
    "s": 34.454,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51617,
    "c": 0.13426,
    "h": 310.7
  },
  "luminance": 0.12576
}

Semantic roles & 50–950 ramp

primary
#804EA0
secondary
#A0BB8F
accent
#CB5D88
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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