#804AD9#804AD9

#804AD9 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.8% C 0.207 H 296.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#804AD9
RGBrgb(128, 74, 217)
HSLhsl(263, 65%, 57%)
HSVhsv(263, 66%, 85%)
CMYKcmyk(41%, 65.9%, 0%, 14.9%)
CIE-LABlab(44.94, 52.81, -65.20)
CIE-LCHlch(44.94, 83.90, 309.01°)
OKLaboklab(54.83% 0.0916 -0.1861)
OKLCHoklch(54.83% 0.207 296.2)
XYZxyz(23.8720, 14.4960, 67.1725)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AD9 #A3D94A
analogous
#4A5CD9 #804AD9 #C74AD9
triadic
#804AD9 #D9804A #4AD980
tetradic
#804AD9 #D94A5C #A3D94A #4AD9C7
square
#804AD9 #D94A5C #A3D94A #4AD9C7
split-complementary
#804AD9 #D9C74A #5CD94A
monochromatic
#471D8B #6128BE #804AD9 #A37DE4 #C7AFEE

Accessibility & contrast

On white

5.39
#804AD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#804AD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AD9
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AD9#FFFFFF#000000##FFFFFF
##804AD91.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0068D6
Tritanopia (blue-blind)
#696C8B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804ad9;
/* rgb */ color: rgb(128, 74, 217);
/* oklch */ color: oklch(54.8% 0.207 296.2);
Tailwind
colors: {
  custom: {
    50: '#ab80e6',
    500: '#804ad9',
    950: '#000000',
  },
}
SCSS
$custom: #804ad9;
$custom-light: #ab80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#804ad9",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 217
  },
  "hsl": {
    "h": 262.657,
    "s": 65.297,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54833,
    "c": 0.20744,
    "h": 296.2
  },
  "luminance": 0.14497
}

Semantic roles & 50–950 ramp

primary
#804AD9
secondary
#C7DCA2
accent
#E840A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804AD9

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

Preview Lab → · Contrast checker → · Palette generator →

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