#804EA5#804EA5

#804EA5 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 51.9% C 0.140 H 308.8°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#804EA5
RGBrgb(128, 78, 165)
HSLhsl(274, 36%, 48%)
HSVhsv(274, 53%, 65%)
CMYKcmyk(22.4%, 52.7%, 0%, 35.3%)
CIE-LABlab(42.39, 37.64, -38.99)
CIE-LCHlch(42.39, 54.20, 313.99°)
OKLaboklab(51.91% 0.088 -0.1092)
OKLCHoklch(51.91% 0.14 308.8)
XYZxyz(18.4167, 12.7549, 37.0818)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EA5 #73A54E
analogous
#554EA5 #804EA5 #A54E9E
triadic
#804EA5 #A5804E #4EA580
tetradic
#804EA5 #A5554E #73A54E #4E9EA5
square
#804EA5 #A5554E #73A54E #4E9EA5
split-complementary
#804EA5 #9EA54E #4EA555
monochromatic
#402752 #603A7B #804EA5 #9E73BD #BB9DD1

Accessibility & contrast

On white

5.91
#804EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#804EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EA5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EA5#FFFFFF#000000##FFFFFF
##804EA51.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A8
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#7B5D72
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ea5;
/* rgb */ color: rgb(128, 78, 165);
/* oklch */ color: oklch(51.9% 0.140 308.8);
Tailwind
colors: {
  custom: {
    50: '#a781c0',
    500: '#804ea5',
    950: '#000000',
  },
}
SCSS
$custom: #804ea5;
$custom-light: #a781c0;
$custom-dark: #000000;
JSON
{
  "hex": "#804ea5",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 274.483,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51909,
    "c": 0.14027,
    "h": 308.8
  },
  "luminance": 0.12755
}

Semantic roles & 50–950 ramp

primary
#804EA5
secondary
#A4BD91
accent
#CC5C8C
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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