#804AD2#804AD2

#804AD2 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.3% C 0.199 H 297.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#804AD2
RGBrgb(128, 74, 210)
HSLhsl(264, 60%, 56%)
HSVhsv(264, 65%, 82%)
CMYKcmyk(39%, 64.8%, 0%, 17.6%)
CIE-LABlab(44.43, 51.01, -62.00)
CIE-LCHlch(44.43, 80.29, 309.44°)
OKLaboklab(54.31% 0.0924 -0.1767)
OKLCHoklch(54.31% 0.199 297.6)
XYZxyz(22.9808, 14.1395, 62.4787)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AD2 #9CD24A
analogous
#4A58D2 #804AD2 #C44AD2
triadic
#804AD2 #D2804A #4AD280
tetradic
#804AD2 #D24A58 #9CD24A #4AD2C4
square
#804AD2 #D24A58 #9CD24A #4AD2C4
split-complementary
#804AD2 #D2C44A #58D24A
monochromatic
#472081 #622CB2 #804AD2 #A27BDE #C5ACEA

Accessibility & contrast

On white

5.49
#804AD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#804AD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AD2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AD2#FFFFFF#000000##FFFFFF
##804AD21.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#6C6987
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804ad2;
/* rgb */ color: rgb(128, 74, 210);
/* oklch */ color: oklch(54.3% 0.199 297.6);
Tailwind
colors: {
  custom: {
    50: '#ab80e1',
    500: '#804ad2',
    950: '#000000',
  },
}
SCSS
$custom: #804ad2;
$custom-light: #ab80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ad2",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 210
  },
  "hsl": {
    "h": 263.824,
    "s": 60.177,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54312,
    "c": 0.19942,
    "h": 297.6
  },
  "luminance": 0.1414
}

Semantic roles & 50–950 ramp

primary
#804AD2
secondary
#C2D8A0
accent
#E344A4
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #804AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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