#804AD7#804AD7

#804AD7 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.7% C 0.205 H 296.6°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#804AD7
RGBrgb(128, 74, 215)
HSLhsl(263, 64%, 57%)
HSVhsv(263, 66%, 84%)
CMYKcmyk(40.5%, 65.6%, 0%, 15.7%)
CIE-LABlab(44.79, 52.29, -64.29)
CIE-LCHlch(44.79, 82.87, 309.13°)
OKLaboklab(54.68% 0.0918 -0.1834)
OKLCHoklch(54.68% 0.205 296.6)
XYZxyz(23.6134, 14.3926, 65.8107)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AD7 #A1D74A
analogous
#4A5BD7 #804AD7 #C74AD7
triadic
#804AD7 #D7804A #4AD780
tetradic
#804AD7 #D74A5B #A1D74A #4AD7C7
square
#804AD7 #D74A5B #A1D74A #4AD7C7
split-complementary
#804AD7 #D7C74A #5BD74A
monochromatic
#471E88 #6129BB #804AD7 #A37CE2 #C6AEED

Accessibility & contrast

On white

5.41
#804AD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#804AD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AD7
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AD7#FFFFFF#000000##FFFFFF
##804AD71.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#6A6B8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804ad7;
/* rgb */ color: rgb(128, 74, 215);
/* oklch */ color: oklch(54.7% 0.205 296.6);
Tailwind
colors: {
  custom: {
    50: '#ab80e4',
    500: '#804ad7',
    950: '#000000',
  },
}
SCSS
$custom: #804ad7;
$custom-light: #ab80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#804ad7",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 215
  },
  "hsl": {
    "h": 262.979,
    "s": 63.801,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54683,
    "c": 0.20515,
    "h": 296.6
  },
  "luminance": 0.14393
}

Semantic roles & 50–950 ramp

primary
#804AD7
secondary
#C5DBA2
accent
#E741A7
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804AD7

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

Preview Lab → · Contrast checker → · Palette generator →

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