#804ED3#804ED3

#804ED3 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.195 H 296.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#804ED3
RGBrgb(128, 78, 211)
HSLhsl(263, 60%, 57%)
HSVhsv(263, 63%, 83%)
CMYKcmyk(39.3%, 63%, 0%, 17.3%)
CIE-LABlab(45.28, 49.17, -61.21)
CIE-LCHlch(45.28, 78.51, 308.77°)
OKLaboklab(54.95% 0.0879 -0.1744)
OKLCHoklch(54.95% 0.195 296.8)
XYZxyz(23.3813, 14.7407, 63.2288)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED3 #A1D34E
analogous
#4E5FD3 #804ED3 #C24ED3
triadic
#804ED3 #D3804E #4ED380
tetradic
#804ED3 #D34E5F #A1D34E #4ED3C2
square
#804ED3 #D34E5F #A1D34E #4ED3C2
split-complementary
#804ED3 #D3C24E #5FD34E
monochromatic
#472185 #612DB6 #804ED3 #A37FDF #C6B0EB

Accessibility & contrast

On white

5.32
#804ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#804ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED3
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED3#FFFFFF#000000##FFFFFF
##804ED31.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD7
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#6C6C89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804ed3;
/* rgb */ color: rgb(128, 78, 211);
/* oklch */ color: oklch(54.9% 0.195 296.8);
Tailwind
colors: {
  custom: {
    50: '#aa82e1',
    500: '#804ed3',
    950: '#000000',
  },
}
SCSS
$custom: #804ed3;
$custom-light: #aa82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed3",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 211
  },
  "hsl": {
    "h": 262.556,
    "s": 60.181,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54945,
    "c": 0.1953,
    "h": 296.8
  },
  "luminance": 0.14741
}

Semantic roles & 50–950 ramp

primary
#804ED3
secondary
#C5DAA3
accent
#E344A8
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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