#804ED4#804ED4

#804ED4 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.196 H 296.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#804ED4
RGBrgb(128, 78, 212)
HSLhsl(262, 61%, 57%)
HSVhsv(262, 63%, 83%)
CMYKcmyk(39.6%, 63.2%, 0%, 16.9%)
CIE-LABlab(45.35, 49.43, -61.67)
CIE-LCHlch(45.35, 79.03, 308.71°)
OKLaboklab(55.02% 0.0878 -0.1758)
OKLCHoklch(55.02% 0.196 296.6)
XYZxyz(23.5071, 14.7910, 63.8910)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED4 #A2D44E
analogous
#4E5FD4 #804ED4 #C34ED4
triadic
#804ED4 #D4804E #4ED480
tetradic
#804ED4 #D44E5F #A2D44E #4ED4C3
square
#804ED4 #D44E5F #A2D44E #4ED4C3
split-complementary
#804ED4 #D4C34E #5FD44E
monochromatic
#472187 #612DB8 #804ED4 #A37FE0 #C7B0EC

Accessibility & contrast

On white

5.31
#804ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#804ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED4#FFFFFF#000000##FFFFFF
##804ED41.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#006AD1
Tritanopia (blue-blind)
#6B6C8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804ed4;
/* rgb */ color: rgb(128, 78, 212);
/* oklch */ color: oklch(55.0% 0.196 296.6);
Tailwind
colors: {
  custom: {
    50: '#ab82e2',
    500: '#804ed4',
    950: '#000000',
  },
}
SCSS
$custom: #804ed4;
$custom-light: #ab82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed4",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 212
  },
  "hsl": {
    "h": 262.388,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55017,
    "c": 0.19648,
    "h": 296.6
  },
  "luminance": 0.14791
}

Semantic roles & 50–950 ramp

primary
#804ED4
secondary
#C6DAA4
accent
#E444A8
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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