#804EA8#804EA8

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

Color values

HEX#804EA8
RGBrgb(128, 78, 168)
HSLhsl(273, 37%, 48%)
HSVhsv(273, 54%, 66%)
CMYKcmyk(23.8%, 53.6%, 0%, 34.1%)
CIE-LABlab(42.56, 38.36, -40.51)
CIE-LCHlch(42.56, 55.79, 313.44°)
OKLaboklab(52.09% 0.0882 -0.1137)
OKLCHoklch(52.09% 0.144 307.8)
XYZxyz(18.6929, 12.8654, 38.5367)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA8 #76A84E
analogous
#534EA8 #804EA8 #A84EA3
triadic
#804EA8 #A8804E #4EA880
tetradic
#804EA8 #A8534E #76A84E #4EA3A8
square
#804EA8 #A8534E #76A84E #4EA3A8
split-complementary
#804EA8 #A3A84E #4EA853
monochromatic
#402754 #603B7E #804EA8 #9E75BF #BB9ED2

Accessibility & contrast

On white

5.88
#804EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#804EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EA8
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA8#FFFFFF#000000##FFFFFF
##804EA81.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3363AB
Deuteranopia (green-blind)
#4365A6
Tritanopia (blue-blind)
#7A5E73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ea8;
/* rgb */ color: rgb(128, 78, 168);
/* oklch */ color: oklch(52.1% 0.144 307.8);
Tailwind
colors: {
  custom: {
    50: '#a781c2',
    500: '#804ea8',
    950: '#000000',
  },
}
SCSS
$custom: #804ea8;
$custom-light: #a781c2;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea8",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 273.333,
    "s": 36.585,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52088,
    "c": 0.14388,
    "h": 307.8
  },
  "luminance": 0.12865
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #804EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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