#804ED5#804ED5

#804ED5 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.1% C 0.198 H 296.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#804ED5
RGBrgb(128, 78, 213)
HSLhsl(262, 62%, 57%)
HSVhsv(262, 63%, 84%)
CMYKcmyk(39.9%, 63.4%, 0%, 16.5%)
CIE-LABlab(45.42, 49.69, -62.13)
CIE-LCHlch(45.42, 79.55, 308.65°)
OKLaboklab(55.09% 0.0877 -0.1771)
OKLCHoklch(55.09% 0.198 296.4)
XYZxyz(23.6336, 14.8416, 64.5574)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804ED5 #A3D54E
analogous
#4E60D5 #804ED5 #C34ED5
triadic
#804ED5 #D5804E #4ED580
tetradic
#804ED5 #D54E60 #A3D54E #4ED5C3
square
#804ED5 #D54E60 #A3D54E #4ED5C3
split-complementary
#804ED5 #D5C34E #60D54E
monochromatic
#472088 #612CBA #804ED5 #A37FE1 #C7B1EC

Accessibility & contrast

On white

5.29
#804ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#804ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804ED5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804ED5#FFFFFF#000000##FFFFFF
##804ED51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#6B6D8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804ed5;
/* rgb */ color: rgb(128, 78, 213);
/* oklch */ color: oklch(55.1% 0.198 296.4);
Tailwind
colors: {
  custom: {
    50: '#ab82e3',
    500: '#804ed5',
    950: '#000000',
  },
}
SCSS
$custom: #804ed5;
$custom-light: #ab82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804ed5",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 213
  },
  "hsl": {
    "h": 262.222,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5509,
    "c": 0.19765,
    "h": 296.4
  },
  "luminance": 0.14842
}

Semantic roles & 50–950 ramp

primary
#804ED5
secondary
#C7DBA4
accent
#E543A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #804ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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