#804AEA#804AEA

#804AEA is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.1% C 0.227 H 293.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#804AEA
RGBrgb(128, 74, 234)
HSLhsl(260, 79%, 60%)
HSVhsv(260, 68%, 92%)
CMYKcmyk(45.3%, 68.4%, 0%, 8.2%)
CIE-LABlab(46.21, 57.24, -72.77)
CIE-LCHlch(46.21, 92.59, 308.19°)
OKLaboklab(56.15% 0.0891 -0.2084)
OKLCHoklch(56.15% 0.227 293.2)
XYZxyz(26.1981, 15.4265, 79.4232)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AEA #B4EA4A
analogous
#4A64EA #804AEA #D04AEA
triadic
#804AEA #EA804A #4AEA80
tetradic
#804AEA #EA4A64 #B4EA4A #4AEAD0
square
#804AEA #EA4A64 #B4EA4A #4AEAD0
split-complementary
#804AEA #EAD04A #64EA4A
monochromatic
#4513A6 #5C1ADD #804AEA #A681F0 #CDB8F7

Accessibility & contrast

On white

5.14
#804AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#804AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AEA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AEA#FFFFFF#000000##FFFFFF
##804AEA1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#006AE7
Tritanopia (blue-blind)
#617295
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #804aea;
/* rgb */ color: rgb(128, 74, 234);
/* oklch */ color: oklch(56.1% 0.227 293.2);
Tailwind
colors: {
  custom: {
    50: '#ad80f2',
    500: '#804aea',
    950: '#000000',
  },
}
SCSS
$custom: #804aea;
$custom-light: #ad80f2;
$custom-dark: #000000;
JSON
{
  "hex": "#804aea",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 234
  },
  "hsl": {
    "h": 260.25,
    "s": 79.208,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56147,
    "c": 0.22665,
    "h": 293.2
  },
  "luminance": 0.15427
}

Semantic roles & 50–950 ramp

primary
#804AEA
secondary
#D2E6A9
accent
#DC0A95
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A17
muted
#807C85

Preview Lab

Preview with #804AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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