#804AD4#804AD4

#804AD4 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.5% C 0.202 H 297.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#804AD4
RGBrgb(128, 74, 212)
HSLhsl(263, 62%, 56%)
HSVhsv(263, 65%, 83%)
CMYKcmyk(39.6%, 65.1%, 0%, 16.9%)
CIE-LABlab(44.57, 51.52, -62.92)
CIE-LCHlch(44.57, 81.32, 309.31°)
OKLaboklab(54.46% 0.0922 -0.1794)
OKLCHoklch(54.46% 0.202 297.2)
XYZxyz(23.2315, 14.2398, 63.7992)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AD4 #9ED44A
analogous
#4A59D4 #804AD4 #C54AD4
triadic
#804AD4 #D4804A #4AD480
tetradic
#804AD4 #D44A59 #9ED44A #4AD4C5
square
#804AD4 #D44A59 #9ED44A #4AD4C5
split-complementary
#804AD4 #D4C54A #59D44A
monochromatic
#471F84 #612BB6 #804AD4 #A37BE0 #C5ADEB

Accessibility & contrast

On white

5.46
#804AD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#804AD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AD4
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AD4#FFFFFF#000000##FFFFFF
##804AD41.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#6B6A89
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804ad4;
/* rgb */ color: rgb(128, 74, 212);
/* oklch */ color: oklch(54.5% 0.202 297.2);
Tailwind
colors: {
  custom: {
    50: '#ab80e2',
    500: '#804ad4',
    950: '#000000',
  },
}
SCSS
$custom: #804ad4;
$custom-light: #ab80e2;
$custom-dark: #000000;
JSON
{
  "hex": "#804ad4",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 212
  },
  "hsl": {
    "h": 263.478,
    "s": 61.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5446,
    "c": 0.20171,
    "h": 297.2
  },
  "luminance": 0.1424
}

Semantic roles & 50–950 ramp

primary
#804AD4
secondary
#C3D9A0
accent
#E543A5
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #804AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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