#804AD5#804AD5

#804AD5 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.5% C 0.203 H 297.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#804AD5
RGBrgb(128, 74, 213)
HSLhsl(263, 62%, 56%)
HSVhsv(263, 65%, 84%)
CMYKcmyk(39.9%, 65.3%, 0%, 16.5%)
CIE-LABlab(44.65, 51.78, -63.38)
CIE-LCHlch(44.65, 81.84, 309.25°)
OKLaboklab(54.53% 0.0921 -0.1808)
OKLCHoklch(54.53% 0.203 297)
XYZxyz(23.3580, 14.2904, 64.4656)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AD5 #9FD54A
analogous
#4A5AD5 #804AD5 #C54AD5
triadic
#804AD5 #D5804A #4AD580
tetradic
#804AD5 #D54A5A #9FD54A #4AD5C5
square
#804AD5 #D54A5A #9FD54A #4AD5C5
split-complementary
#804AD5 #D5C54A #5AD54A
monochromatic
#471F86 #612BB7 #804AD5 #A37CE1 #C6ADEC

Accessibility & contrast

On white

5.44
#804AD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#804AD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AD5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AD5#FFFFFF#000000##FFFFFF
##804AD51.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#6B6A89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804ad5;
/* rgb */ color: rgb(128, 74, 213);
/* oklch */ color: oklch(54.5% 0.203 297.0);
Tailwind
colors: {
  custom: {
    50: '#ab80e3',
    500: '#804ad5',
    950: '#000000',
  },
}
SCSS
$custom: #804ad5;
$custom-light: #ab80e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804ad5",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 213
  },
  "hsl": {
    "h": 263.309,
    "s": 62.332,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54534,
    "c": 0.20286,
    "h": 297
  },
  "luminance": 0.14291
}

Semantic roles & 50–950 ramp

primary
#804AD5
secondary
#C4DAA1
accent
#E542A6
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #804AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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