#804AE2#804AE2

#804AE2 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.5% C 0.218 H 294.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#804AE2
RGBrgb(128, 74, 226)
HSLhsl(261, 72%, 59%)
HSVhsv(261, 67%, 89%)
CMYKcmyk(43.4%, 67.3%, 0%, 11.4%)
CIE-LABlab(45.60, 55.15, -69.24)
CIE-LCHlch(45.60, 88.52, 308.54°)
OKLaboklab(55.52% 0.0904 -0.198)
OKLCHoklch(55.52% 0.218 294.5)
XYZxyz(25.0746, 14.9771, 73.5065)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AE2 #ACE24A
analogous
#4A60E2 #804AE2 #CC4AE2
triadic
#804AE2 #E2804A #4AE280
tetradic
#804AE2 #E24A60 #ACE24A #4AE2CC
square
#804AE2 #E24A60 #ACE24A #4AE2CC
split-complementary
#804AE2 #E2CC4A #60E24A
monochromatic
#461999 #5E21CE #804AE2 #A57FEA #CAB3F3

Accessibility & contrast

On white

5.26
#804AE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#804AE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AE2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AE2#FFFFFF#000000##FFFFFF
##804AE21.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#0069DF
Tritanopia (blue-blind)
#656F90
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804ae2;
/* rgb */ color: rgb(128, 74, 226);
/* oklch */ color: oklch(55.5% 0.218 294.5);
Tailwind
colors: {
  custom: {
    50: '#ac80ec',
    500: '#804ae2',
    950: '#000000',
  },
}
SCSS
$custom: #804ae2;
$custom-light: #ac80ec;
$custom-dark: #000000;
JSON
{
  "hex": "#804ae2",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 226
  },
  "hsl": {
    "h": 261.316,
    "s": 72.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55521,
    "c": 0.21765,
    "h": 294.5
  },
  "luminance": 0.14978
}

Semantic roles & 50–950 ramp

primary
#804AE2
secondary
#CDE2A6
accent
#EF39AE
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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