#804DA5#804DA5

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

Color values

HEX#804DA5
RGBrgb(128, 77, 165)
HSLhsl(275, 36%, 47%)
HSVhsv(275, 53%, 65%)
CMYKcmyk(22.4%, 53.3%, 0%, 35.3%)
CIE-LABlab(42.18, 38.20, -39.34)
CIE-LCHlch(42.18, 54.84, 314.16°)
OKLaboklab(51.75% 0.0894 -0.1102)
OKLCHoklch(51.75% 0.142 309)
XYZxyz(18.3462, 12.6138, 37.0583)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DA5 #72A54D
analogous
#544DA5 #804DA5 #A54D9E
triadic
#804DA5 #A5804D #4DA580
tetradic
#804DA5 #A5544D #72A54D #4D9EA5
square
#804DA5 #A5544D #72A54D #4D9EA5
split-complementary
#804DA5 #9EA54D #4DA554
monochromatic
#3F2652 #603A7B #804DA5 #9E72BD #BA9CD1

Accessibility & contrast

On white

5.96
#804DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#804DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DA5
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DA5#FFFFFF#000000##FFFFFF
##804DA51.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A8
Deuteranopia (green-blind)
#4464A3
Tritanopia (blue-blind)
#7B5C71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804da5;
/* rgb */ color: rgb(128, 77, 165);
/* oklch */ color: oklch(51.7% 0.142 309.0);
Tailwind
colors: {
  custom: {
    50: '#a781c0',
    500: '#804da5',
    950: '#000000',
  },
}
SCSS
$custom: #804da5;
$custom-light: #a781c0;
$custom-dark: #000000;
JSON
{
  "hex": "#804da5",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 165
  },
  "hsl": {
    "h": 274.773,
    "s": 36.364,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51749,
    "c": 0.14192,
    "h": 309
  },
  "luminance": 0.12614
}

Semantic roles & 50–950 ramp

primary
#804DA5
secondary
#A3BD90
accent
#CC5B8B
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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