#804EA2#804EA2

#804EA2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.137 H 309.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#804EA2
RGBrgb(128, 78, 162)
HSLhsl(276, 35%, 47%)
HSVhsv(276, 52%, 64%)
CMYKcmyk(21%, 51.9%, 0%, 36.5%)
CIE-LABlab(42.23, 36.93, -37.47)
CIE-LCHlch(42.23, 52.61, 314.59°)
OKLaboklab(51.73% 0.0877 -0.1048)
OKLCHoklch(51.73% 0.137 309.9)
XYZxyz(18.1468, 12.6469, 35.6605)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA2 #70A24E
analogous
#564EA2 #804EA2 #A24E9A
triadic
#804EA2 #A2804E #4EA280
tetradic
#804EA2 #A2564E #70A24E #4E9AA2
square
#804EA2 #A2564E #70A24E #4E9AA2
split-complementary
#804EA2 #9AA24E #4EA256
monochromatic
#3F264F #5F3A79 #804EA2 #9E72BB #BA9BCF

Accessibility & contrast

On white

5.95
#804EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#804EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EA2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA2#FFFFFF#000000##FFFFFF
##804EA21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A5
Deuteranopia (green-blind)
#4765A0
Tritanopia (blue-blind)
#7C5C70
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ea2;
/* rgb */ color: rgb(128, 78, 162);
/* oklch */ color: oklch(51.7% 0.137 309.9);
Tailwind
colors: {
  custom: {
    50: '#a781be',
    500: '#804ea2',
    950: '#000000',
  },
}
SCSS
$custom: #804ea2;
$custom-light: #a781be;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea2",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 275.714,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51733,
    "c": 0.13666,
    "h": 309.9
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#804EA2
secondary
#A2BC90
accent
#CB5D89
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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