#804EAA#804EAA

#804EAA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.2% C 0.146 H 307.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#804EAA
RGBrgb(128, 78, 170)
HSLhsl(273, 37%, 49%)
HSVhsv(273, 54%, 67%)
CMYKcmyk(24.7%, 54.1%, 0%, 33.3%)
CIE-LABlab(42.67, 38.84, -41.51)
CIE-LCHlch(42.67, 56.85, 313.10°)
OKLaboklab(52.21% 0.0884 -0.1166)
OKLCHoklch(52.21% 0.146 307.2)
XYZxyz(18.8807, 12.9405, 39.5255)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EAA #78AA4E
analogous
#524EAA #804EAA #AA4EA6
triadic
#804EAA #AA804E #4EAA80
tetradic
#804EAA #AA524E #78AA4E #4EA6AA
square
#804EAA #AA524E #78AA4E #4EA6AA
split-complementary
#804EAA #A6AA4E #4EAA52
monochromatic
#412856 #603B80 #804EAA #9E75C0 #BB9FD3

Accessibility & contrast

On white

5.85
#804EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#804EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EAA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EAA#FFFFFF#000000##FFFFFF
##804EAA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3163AD
Deuteranopia (green-blind)
#4165A8
Tritanopia (blue-blind)
#7A5F74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804eaa;
/* rgb */ color: rgb(128, 78, 170);
/* oklch */ color: oklch(52.2% 0.146 307.2);
Tailwind
colors: {
  custom: {
    50: '#a781c4',
    500: '#804eaa',
    950: '#000000',
  },
}
SCSS
$custom: #804eaa;
$custom-light: #a781c4;
$custom-dark: #000000;
JSON
{
  "hex": "#804eaa",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 272.609,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52209,
    "c": 0.1463,
    "h": 307.2
  },
  "luminance": 0.1294
}

Semantic roles & 50–950 ramp

primary
#804EAA
secondary
#A8C094
accent
#CD5B8F
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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