#804AC5#804AC5

#804AC5 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.4% C 0.184 H 300.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#804AC5
RGBrgb(128, 74, 197)
HSLhsl(266, 51%, 53%)
HSVhsv(266, 62%, 77%)
CMYKcmyk(35%, 62.4%, 0%, 22.7%)
CIE-LABlab(43.53, 47.69, -55.95)
CIE-LCHlch(43.53, 73.52, 310.45°)
OKLaboklab(53.38% 0.0935 -0.1589)
OKLCHoklch(53.38% 0.184 300.5)
XYZxyz(21.4265, 13.5178, 54.2929)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AC5 #8FC54A
analogous
#4A52C5 #804AC5 #BD4AC5
triadic
#804AC5 #C5804A #4AC580
tetradic
#804AC5 #C54A52 #8FC54A #4AC5BD
square
#804AC5 #C54A52 #8FC54A #4AC5BD
split-complementary
#804AC5 #C5BD4A #52C54A
monochromatic
#462471 #62339F #804AC5 #A178D4 #C1A7E3

Accessibility & contrast

On white

5.67
#804AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#804AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AC5
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AC5#FFFFFF#000000##FFFFFF
##804AC51.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#1B66C2
Tritanopia (blue-blind)
#716581
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804ac5;
/* rgb */ color: rgb(128, 74, 197);
/* oklch */ color: oklch(53.4% 0.184 300.5);
Tailwind
colors: {
  custom: {
    50: '#a97fd7',
    500: '#804ac5',
    950: '#000000',
  },
}
SCSS
$custom: #804ac5;
$custom-light: #a97fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#804ac5",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 197
  },
  "hsl": {
    "h": 266.341,
    "s": 51.464,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53377,
    "c": 0.18438,
    "h": 300.5
  },
  "luminance": 0.13518
}

Semantic roles & 50–950 ramp

primary
#804AC5
secondary
#B9D09B
accent
#DB4D9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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