#804CA0#804CA0

#804CA0 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.3% C 0.138 H 311.0°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#804CA0
RGBrgb(128, 76, 160)
HSLhsl(277, 36%, 46%)
HSVhsv(277, 53%, 63%)
CMYKcmyk(20%, 52.5%, 0%, 37.3%)
CIE-LABlab(41.68, 37.59, -37.14)
CIE-LCHlch(41.68, 52.84, 315.35°)
OKLaboklab(51.3% 0.0904 -0.1038)
OKLCHoklch(51.3% 0.138 311)
XYZxyz(17.8305, 12.2965, 34.6851)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CA0 #6CA04C
analogous
#564CA0 #804CA0 #A04C96
triadic
#804CA0 #A0804C #4CA080
tetradic
#804CA0 #A0564C #6CA04C #4C96A0
square
#804CA0 #A0564C #6CA04C #4C96A0
split-complementary
#804CA0 #96A04C #4CA056
monochromatic
#3E254D #5F3877 #804CA0 #9E6FBA #BA98CE

Accessibility & contrast

On white

6.07
#804CA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#804CA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CA0
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CA0#FFFFFF#000000##FFFFFF
##804CA01.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3660A3
Deuteranopia (green-blind)
#46639E
Tritanopia (blue-blind)
#7C5A6F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804ca0;
/* rgb */ color: rgb(128, 76, 160);
/* oklch */ color: oklch(51.3% 0.138 311.0);
Tailwind
colors: {
  custom: {
    50: '#a780bc',
    500: '#804ca0',
    950: '#000000',
  },
}
SCSS
$custom: #804ca0;
$custom-light: #a780bc;
$custom-dark: #000000;
JSON
{
  "hex": "#804ca0",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 160
  },
  "hsl": {
    "h": 277.143,
    "s": 35.593,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51296,
    "c": 0.13764,
    "h": 311
  },
  "luminance": 0.12296
}

Semantic roles & 50–950 ramp

primary
#804CA0
secondary
#9EBB8D
accent
#CC5C87
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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