#804CA3#804CA3

#804CA3 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.5% C 0.141 H 309.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#804CA3
RGBrgb(128, 76, 163)
HSLhsl(276, 36%, 47%)
HSVhsv(276, 53%, 64%)
CMYKcmyk(21.5%, 53.4%, 0%, 36.1%)
CIE-LABlab(41.85, 38.29, -38.66)
CIE-LCHlch(41.85, 54.42, 314.72°)
OKLaboklab(51.47% 0.0906 -0.1083)
OKLCHoklch(51.47% 0.141 309.9)
XYZxyz(18.0961, 12.4027, 36.0839)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA3 #6FA34C
analogous
#554CA3 #804CA3 #A34C9B
triadic
#804CA3 #A3804C #4CA380
tetradic
#804CA3 #A3554C #6FA34C #4C9BA3
square
#804CA3 #A3554C #6FA34C #4C9BA3
split-complementary
#804CA3 #9BA34C #4CA355
monochromatic
#3E2550 #5F3979 #804CA3 #9E70BC #BA9AD0

Accessibility & contrast

On white

6.03
#804CA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#804CA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA3
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA3#FFFFFF#000000##FFFFFF
##804CA31.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A6
Deuteranopia (green-blind)
#4464A1
Tritanopia (blue-blind)
#7C5B70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ca3;
/* rgb */ color: rgb(128, 76, 163);
/* oklch */ color: oklch(51.5% 0.141 309.9);
Tailwind
colors: {
  custom: {
    50: '#a780bf',
    500: '#804ca3',
    950: '#000000',
  },
}
SCSS
$custom: #804ca3;
$custom-light: #a780bf;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca3",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 163
  },
  "hsl": {
    "h": 275.862,
    "s": 36.402,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51472,
    "c": 0.1412,
    "h": 309.9
  },
  "luminance": 0.12402
}

Semantic roles & 50–950 ramp

primary
#804CA3
secondary
#A1BC8F
accent
#CC5B89
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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