#804AC4#804AC4

#804AC4 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.183 H 300.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#804AC4
RGBrgb(128, 74, 196)
HSLhsl(267, 51%, 53%)
HSVhsv(267, 62%, 77%)
CMYKcmyk(34.7%, 62.2%, 0%, 23.1%)
CIE-LABlab(43.47, 47.44, -55.48)
CIE-LCHlch(43.47, 73.00, 310.53°)
OKLaboklab(53.31% 0.0935 -0.1575)
OKLCHoklch(53.31% 0.183 300.7)
XYZxyz(21.3123, 13.4721, 53.6914)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AC4 #8EC44A
analogous
#4A51C4 #804AC4 #BD4AC4
triadic
#804AC4 #C4804A #4AC480
tetradic
#804AC4 #C44A51 #8EC44A #4AC4BD
square
#804AC4 #C44A51 #8EC44A #4AC4BD
split-complementary
#804AC4 #C4BD4A #51C44A
monochromatic
#45246F #62339D #804AC4 #A078D3 #C1A6E2

Accessibility & contrast

On white

5.68
#804AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#804AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AC4
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AC4#FFFFFF#000000##FFFFFF
##804AC41.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#1D66C1
Tritanopia (blue-blind)
#726480
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804ac4;
/* rgb */ color: rgb(128, 74, 196);
/* oklch */ color: oklch(53.3% 0.183 300.7);
Tailwind
colors: {
  custom: {
    50: '#a97fd7',
    500: '#804ac4',
    950: '#000000',
  },
}
SCSS
$custom: #804ac4;
$custom-light: #a97fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#804ac4",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 196
  },
  "hsl": {
    "h": 266.557,
    "s": 50.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53307,
    "c": 0.18322,
    "h": 300.7
  },
  "luminance": 0.13472
}

Semantic roles & 50–950 ramp

primary
#804AC4
secondary
#B8CF9B
accent
#DA4D9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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