#804CA6#804CA6

#804CA6 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.7% C 0.145 H 308.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#804CA6
RGBrgb(128, 76, 166)
HSLhsl(275, 37%, 47%)
HSVhsv(275, 54%, 65%)
CMYKcmyk(22.9%, 54.2%, 0%, 34.9%)
CIE-LABlab(42.02, 39.00, -40.18)
CIE-LCHlch(42.02, 55.99, 314.15°)
OKLaboklab(51.65% 0.0909 -0.1127)
OKLCHoklch(51.65% 0.145 308.9)
XYZxyz(18.3681, 12.5115, 37.5163)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA6 #72A64C
analogous
#534CA6 #804CA6 #A64C9F
triadic
#804CA6 #A6804C #4CA680
tetradic
#804CA6 #A6534C #72A64C #4C9FA6
square
#804CA6 #A6534C #72A64C #4C9FA6
split-complementary
#804CA6 #9FA64C #4CA653
monochromatic
#3F2652 #60397C #804CA6 #9E71BE #BA9BD1

Accessibility & contrast

On white

6.00
#804CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#804CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA6
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA6#FFFFFF#000000##FFFFFF
##804CA61.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3161A9
Deuteranopia (green-blind)
#4264A4
Tritanopia (blue-blind)
#7B5C72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ca6;
/* rgb */ color: rgb(128, 76, 166);
/* oklch */ color: oklch(51.7% 0.145 308.9);
Tailwind
colors: {
  custom: {
    50: '#a780c1',
    500: '#804ca6',
    950: '#000000',
  },
}
SCSS
$custom: #804ca6;
$custom-light: #a780c1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca6",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 166
  },
  "hsl": {
    "h": 274.667,
    "s": 37.19,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51651,
    "c": 0.14477,
    "h": 308.9
  },
  "luminance": 0.12511
}

Semantic roles & 50–950 ramp

primary
#804CA6
secondary
#A3BE90
accent
#CD5B8B
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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