#804EA4#804EA4

#804EA4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.8% C 0.139 H 309.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#804EA4
RGBrgb(128, 78, 164)
HSLhsl(275, 36%, 47%)
HSVhsv(275, 52%, 64%)
CMYKcmyk(22%, 52.4%, 0%, 35.7%)
CIE-LABlab(42.34, 37.41, -38.49)
CIE-LCHlch(42.34, 53.67, 314.18°)
OKLaboklab(51.85% 0.0879 -0.1078)
OKLCHoklch(51.85% 0.139 309.2)
XYZxyz(18.3260, 12.7186, 36.6043)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA4 #72A44E
analogous
#554EA4 #804EA4 #A44E9D
triadic
#804EA4 #A4804E #4EA480
tetradic
#804EA4 #A4554E #72A44E #4E9DA4
square
#804EA4 #A4554E #72A44E #4E9DA4
split-complementary
#804EA4 #9DA44E #4EA455
monochromatic
#3F2751 #603A7B #804EA4 #9E73BC #BA9CD0

Accessibility & contrast

On white

5.93
#804EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#804EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EA4
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA4#FFFFFF#000000##FFFFFF
##804EA41.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A7
Deuteranopia (green-blind)
#4565A2
Tritanopia (blue-blind)
#7B5D71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ea4;
/* rgb */ color: rgb(128, 78, 164);
/* oklch */ color: oklch(51.8% 0.139 309.2);
Tailwind
colors: {
  custom: {
    50: '#a781bf',
    500: '#804ea4',
    950: '#000000',
  },
}
SCSS
$custom: #804ea4;
$custom-light: #a781bf;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea4",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 274.884,
    "s": 35.537,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5185,
    "c": 0.13906,
    "h": 309.2
  },
  "luminance": 0.12718
}

Semantic roles & 50–950 ramp

primary
#804EA4
secondary
#A3BD91
accent
#CC5C8B
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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