#804ED1#804ED1

#804ED1 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.8% C 0.193 H 297.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#804ED1
RGBrgb(128, 78, 209)
HSLhsl(263, 59%, 56%)
HSVhsv(263, 63%, 82%)
CMYKcmyk(38.8%, 62.7%, 0%, 18%)
CIE-LABlab(45.14, 48.65, -60.28)
CIE-LCHlch(45.14, 77.46, 308.90°)
OKLaboklab(54.8% 0.0881 -0.1717)
OKLCHoklch(54.8% 0.193 297.2)
XYZxyz(23.1322, 14.6410, 61.9165)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED1 #9FD14E
analogous
#4E5ED1 #804ED1 #C24ED1
triadic
#804ED1 #D1804E #4ED180
tetradic
#804ED1 #D14E5E #9FD14E #4ED1C2
square
#804ED1 #D14E5E #9FD14E #4ED1C2
split-complementary
#804ED1 #D1C24E #5ED14E
monochromatic
#472283 #612FB3 #804ED1 #A37FDE #C6AFEA

Accessibility & contrast

On white

5.35
#804ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#804ED1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED1
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED1#FFFFFF#000000##FFFFFF
##804ED11.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#0069CE
Tritanopia (blue-blind)
#6C6B88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804ed1;
/* rgb */ color: rgb(128, 78, 209);
/* oklch */ color: oklch(54.8% 0.193 297.2);
Tailwind
colors: {
  custom: {
    50: '#aa82e0',
    500: '#804ed1',
    950: '#000000',
  },
}
SCSS
$custom: #804ed1;
$custom-light: #aa82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed1",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 209
  },
  "hsl": {
    "h": 262.901,
    "s": 58.744,
    "l": 56.275
  },
  "oklch": {
    "l": 0.548,
    "c": 0.19296,
    "h": 297.2
  },
  "luminance": 0.14641
}

Semantic roles & 50–950 ramp

primary
#804ED1
secondary
#C4D8A2
accent
#E246A6
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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