#804EA3#804EA3

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

Color values

HEX#804EA3
RGBrgb(128, 78, 163)
HSLhsl(275, 35%, 47%)
HSVhsv(275, 52%, 64%)
CMYKcmyk(21.5%, 52.1%, 0%, 36.1%)
CIE-LABlab(42.28, 37.17, -37.98)
CIE-LCHlch(42.28, 53.14, 314.38°)
OKLaboklab(51.79% 0.0878 -0.1063)
OKLCHoklch(51.79% 0.138 309.6)
XYZxyz(18.2361, 12.6826, 36.1305)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA3 #71A34E
analogous
#554EA3 #804EA3 #A34E9C
triadic
#804EA3 #A3804E #4EA380
tetradic
#804EA3 #A3554E #71A34E #4E9CA3
square
#804EA3 #A3554E #71A34E #4E9CA3
split-complementary
#804EA3 #9CA34E #4EA355
monochromatic
#3F2650 #5F3A7A #804EA3 #9E72BC #BA9CD0

Accessibility & contrast

On white

5.94
#804EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804EA3
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA3#FFFFFF#000000##FFFFFF
##804EA31.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3762A6
Deuteranopia (green-blind)
#4665A1
Tritanopia (blue-blind)
#7B5C71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ea3;
/* rgb */ color: rgb(128, 78, 163);
/* oklch */ color: oklch(51.8% 0.138 309.6);
Tailwind
colors: {
  custom: {
    50: '#a781bf',
    500: '#804ea3',
    950: '#000000',
  },
}
SCSS
$custom: #804ea3;
$custom-light: #a781bf;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea3",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 163
  },
  "hsl": {
    "h": 275.294,
    "s": 35.27,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51791,
    "c": 0.13786,
    "h": 309.6
  },
  "luminance": 0.12682
}

Semantic roles & 50–950 ramp

primary
#804EA3
secondary
#A3BC91
accent
#CB5C8A
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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